From b3cf88aac3fd4ca9abfe134b6266f49ced201604 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 17 Feb 2019 13:33:49 +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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 4d604d59..ea1395a5 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -569,7 +569,7 @@ class TextPage extends Vue { } if (this.book && this.bookPos > 0 && this.bookPos >= this.parsed.textLength) { - this.doEnd(); + this.doEnd(true); return; } @@ -591,7 +591,7 @@ class TextPage extends Vue { this.debouncedDrawStatusBar(); if (this.book && this.linesDown && this.linesDown.length < this.pageLineCount) { - this.doEnd(); + this.doEnd(true); return; } } @@ -822,7 +822,7 @@ class TextPage extends Vue { this.bookPos = 0; } - doEnd() { + doEnd(noAni) { if (this.parsed.para.length && this.pageLineCount > 0) { let i = this.parsed.para.length - 1; let lastPos = this.parsed.para[i].offset + this.parsed.para[i].length - 1; @@ -830,7 +830,8 @@ class TextPage extends Vue { if (lines) { i = this.pageLineCount - 1; i = (i > lines.length - 1 ? lines.length - 1 : i); - this.currentAnimation = this.pageChangeAnimation; + if (!noAni) + this.currentAnimation = this.pageChangeAnimation; this.pageChangeDirectionDown = true; this.bookPos = lines[i].begin; }