Ver Fonte

Поправка бага

Book Pauk há 2 anos atrás
pai
commit
a21e216eb9
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      client/components/Reader/TextPage/TextPage.vue

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

@@ -1064,6 +1064,7 @@ class TextPage {
             if (this.startTouch) {
                 const dy = this.startTouch.y - y;
                 const dx = this.startTouch.x - x;
+                this.startTouch = null;
                 const moveDelta = 30;
                 const touchDelta = 15;
                 if (dy > 0 && Math.abs(dy) >= moveDelta && Math.abs(dy) > Math.abs(dx)) {
@@ -1096,8 +1097,6 @@ class TextPage {
                         this.clickAction = '';
                     })();
                 }
-
-                this.startTouch = null;
             }
         }
     }