From c696a0d90673c3da7c1e12546022c76a728b1420 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Tue, 22 Jan 2019 05:36:27 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=20=D0=BA=D0=BB=D0=B8=D0=BA=D1=83?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=B2=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81-=D0=B1?= =?UTF-8?q?=D0=B0=D1=80=D0=B5=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D0=B2=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=D1=81=D1=8F=20=D0=BE=D1=80=D0=B8=D0=B3=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/TextPage/TextPage.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 77d27e05..413ac1f8 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -596,6 +596,20 @@ class TextPage extends Vue { 100: {30: 'PgUp', 100: 'PgDown'} }; + if (this.showStatusBar && this.book) { + let titleBar = {x1: 0, y1: 0, x2: this.realWidth/2, y2: this.statusBarHeight + 1}; + if (!this.statusBarTop) { + titleBar.y1 += this.realHeight - this.statusBarHeight + 1; + titleBar.y2 += this.realHeight - this.statusBarHeight + 1; + } + + if (pointX >= titleBar.x1 && pointX <= titleBar.x2 && + pointY >= titleBar.y1 && pointY <= titleBar.y2) { + window.open(this.meta.url, '_blank'); + return; + } + } + const w = pointX/this.realWidth*100; const h = pointY/this.realHeight*100;