ソースを参照

bugfix:处理滑块问题

leo 1 年間 前
コミット
914b722164
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5 0
      components/verifition/Verify/VerifySlide.vue

+ 5 - 0
components/verifition/Verify/VerifySlide.vue

@@ -203,6 +203,11 @@ export default {
     },
   },
   mounted() {
+    let verifyMoveBlock = document.querySelector('.verify-move-block');
+    verifyMoveBlock.addEventListener('touchmove', function (event) {
+      // 阻止默认的滑动行为
+      event.preventDefault();
+    });
     // 禁止拖拽
     this.$el.onselectstart = function () {
       return false;