From 211ddd73bc2200a2f1d5805945effece9be1bfdc Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 1 Nov 2019 17:04:53 +0800 Subject: [PATCH] fix(v3): touches --- src/core/view/plugins/events.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/core/view/plugins/events.js b/src/core/view/plugins/events.js index 0eafa5a69..1fd3d3bfd 100644 --- a/src/core/view/plugins/events.js +++ b/src/core/view/plugins/events.js @@ -154,12 +154,10 @@ function touchmove (evt) { return clearLongPressTimer() } - const { - touches: [{ - pageX, - pageY - }] - } = evt + const { + pageX, + pageY + } = evt.touches[0] if (Math.abs(pageX - startPageX) > LONGPRESS_THRESHOLD || Math.abs(pageY - startPageY) > LONGPRESS_THRESHOLD) { return clearLongPressTimer() -- GitLab