From 6a05687385bd5f395d2b85d09ae02bfc3d7013db Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Tue, 22 Jan 2019 16:10:58 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B1=D0=B0=D0=B6=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/TextPage/TextPage.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 413ac1f8..6b92c8ac 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -556,8 +556,8 @@ class TextPage extends Vue { const touch = event.touches[0]; const x = touch.pageX - this.canvas.offsetLeft; const y = touch.pageY - this.canvas.offsetTop; - this.handleClick(x, y); - this.startClickRepeat(x, y); + if (this.handleClick(x, y)) + this.startClickRepeat(x, y); } } @@ -570,8 +570,8 @@ class TextPage extends Vue { if (event.button == 0) { const x = event.pageX - this.canvas.offsetLeft; const y = event.pageY - this.canvas.offsetTop; - this.handleClick(x, y); - this.startClickRepeat(x, y); + if (this.handleClick(x, y)) + this.startClickRepeat(x, y); } else if (event.button == 2) { this.doToolBarToggle(); } @@ -606,7 +606,7 @@ class TextPage extends Vue { if (pointX >= titleBar.x1 && pointX <= titleBar.x2 && pointY >= titleBar.y1 && pointY <= titleBar.y2) { window.open(this.meta.url, '_blank'); - return; + return false; } }