From 0486c4b829bc01c3b7eb3eb7e19891f4d2d6b040 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 17 Mar 2022 18:04:31 +0800 Subject: [PATCH] fix(mp): remove the delay of touch event (#3347) --- packages/uni-mp-vue/dist/vue.runtime.esm.js | 9 +++++---- packages/uni-mp-vue/src/helpers/vOn.ts | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/uni-mp-vue/dist/vue.runtime.esm.js b/packages/uni-mp-vue/dist/vue.runtime.esm.js index d3aaa8e20..3cd02c2f8 100644 --- a/packages/uni-mp-vue/dist/vue.runtime.esm.js +++ b/packages/uni-mp-vue/dist/vue.runtime.esm.js @@ -5380,10 +5380,11 @@ function createInvoker(initialValue, instance) { } // 冒泡事件列表 const bubbles = [ - 'touchstart', - 'touchmove', - 'touchcancel', - 'touchend', + // touch事件暂不做延迟,否则在 Android 上会影响性能,比如一些拖拽跟手手势等 + // 'touchstart', + // 'touchmove', + // 'touchcancel', + // 'touchend', 'tap', 'longpress', 'longtap', diff --git a/packages/uni-mp-vue/src/helpers/vOn.ts b/packages/uni-mp-vue/src/helpers/vOn.ts index 9f979eb2e..e7f8902d8 100644 --- a/packages/uni-mp-vue/src/helpers/vOn.ts +++ b/packages/uni-mp-vue/src/helpers/vOn.ts @@ -96,10 +96,11 @@ function createInvoker( } // 冒泡事件列表 const bubbles = [ - 'touchstart', - 'touchmove', - 'touchcancel', - 'touchend', + // touch事件暂不做延迟,否则在 Android 上会影响性能,比如一些拖拽跟手手势等 + // 'touchstart', + // 'touchmove', + // 'touchcancel', + // 'touchend', 'tap', 'longpress', 'longtap', -- GitLab