Browse Source

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

Book Pauk 4 years ago
parent
commit
2e58cfdb75
1 changed files with 1 additions and 1 deletions
  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;