diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 7ba740e1..f1fa92ab 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -582,16 +582,19 @@ class TextPage { const page = this.$refs.scrollingPage1; let i = 0; while (!this.stopScrolling) { - page.style.transition = `${this.scrollingDelay}ms ${this.scrollingType}`; - page.style.transform = `translateY(-${this.lineHeight}px)`; - if (i > 0) { this.doDown(); + await utils.sleep(1); + await this.$nextTick(); if (this.linesDown.length <= this.pageLineCount + 1) { this.stopScrolling = true; } } + + page.style.transition = `${this.scrollingDelay}ms ${this.scrollingType}`; + page.style.transform = `translateY(-${this.lineHeight}px)`; await transitionFinish(this.scrollingDelay); + page.style.transition = ''; page.style.transform = 'none'; page.offsetHeight;