From ada3a3b4fd76d7d1a9e31e74bc1191185702761d Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 16 Dec 2022 19:41:20 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/TextPage/TextPage.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 03518293..7ba740e1 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -1080,21 +1080,21 @@ class TextPage { //движение вправо this.doScrollingSpeedUp(); } else if (Math.abs(dy) < touchDelta && Math.abs(dx) < touchDelta) { - if (this.clickAction === 'tb' || this.clickAction === 'fs') { - this.clickAction = 'fs'; + if (this.touchMode) { + this.touchMode = 2; return; } (async() => { - this.clickAction = 'tb'; + this.touchMode = 1; let i = 20; - while (i-- > 0 && this.clickAction === 'tb') + while (i-- > 0 && this.touchMode === 1) await utils.sleep(10); - if (this.clickAction === 'tb') + if (this.touchMode === 1) this.doToolBarToggle(); else this.doFullScreenToggle(); - this.clickAction = ''; + this.touchMode = 0; })(); } }