瀏覽代碼

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

Book Pauk 2 年之前
父節點
當前提交
a21e216eb9
共有 1 個文件被更改,包括 1 次插入2 次删除
  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;
             }
         }
     }