Răsfoiți Sursa

Мелкие доработки

Book Pauk 6 ani în urmă
părinte
comite
bbeb92a9da

+ 1 - 1
client/components/Reader/HelpPage/CommonHelpPage/CommonHelpPage.vue

@@ -8,7 +8,7 @@
             <li>кэширование файлов книг на клиенте и на сервере</li>
             <li>открытие книг с локального диска</li>
             <li>плавный скроллинг текста</li>
-            <li>анимация перелистывания (скоро)</li>
+            <li>анимация перелистывания</li>
             <li>поиск по тексту и копирование фрагмента</li>
             <li>запоминание недавних книг, скачивание книги из читалки в формате fb2</li>
             <li>управление кликом и с клавиатуры</li>

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

@@ -553,7 +553,7 @@ class TextPage extends Vue {
         }
 
         //fast draw prepared
-        if (!this.currentAnimation && this.pageChangeDirectionDown && this.pagePrepared && this.bookPos == this.bookPosPrepared) {
+        if (!this.inAnimation && !this.currentAnimation && this.pageChangeDirectionDown && this.pagePrepared && this.bookPos == this.bookPosPrepared) {
             this.toggleLayout = !this.toggleLayout;
             this.linesDown = this.linesDownNext;
             this.linesUp = this.linesUpNext;
@@ -566,7 +566,7 @@ class TextPage extends Vue {
         }
 
         this.pagePrepared = false;
-        if (!this.currentAnimation)
+        if (!this.inAnimation && !this.currentAnimation)
             this.debouncedPrepareNextPage();
         this.debouncedDrawStatusBar();
 

+ 1 - 1
client/store/modules/reader.js

@@ -153,7 +153,7 @@ const settingDefaults = {
         scrollingType: 'ease-in-out', //linear, ease, ease-in, ease-out, ease-in-out
 
         pageChangeAnimation: 'thaw',// '' - нет, downShift, rightShift, thaw - протаивание, blink - мерцание
-        pageChangeAnimationSpeed: 80, //0-100%
+        pageChangeAnimationSpeed: 90, //0-100%
 
         allowUrlParamBookPos: false,
         lazyParseEnabled: false,