Browse Source

Исправлен мелкий баг PageDown

Book Pauk 4 năm trước cách đây
mục cha
commit
2e58cfdb75
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/components/Reader/TextPage/TextPage.vue

+ 1 - 1
client/components/Reader/TextPage/TextPage.vue

@@ -839,7 +839,7 @@ class TextPage extends Vue {
             let i = this.pageLineCount;
             if (this.keepLastToFirst)
                 i--;
-            if (i >= 0 && this.linesDown.length >= 2*i) {
+            if (i >= 0 && this.linesDown.length >= 2*i + (this.keepLastToFirst ? 1 : 0)) {
                 this.currentAnimation = this.pageChangeAnimation;
                 this.pageChangeDirectionDown = true;
                 this.bookPos = this.linesDown[i].begin;