From 499fa577b7e40eb97183455adaa62cd33990ccd8 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Tue, 21 Dec 2021 18:33:39 +0800 Subject: [PATCH] chore: isPCEvent -> isMouseEvent --- src/core/view/plugins/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/view/plugins/events.js b/src/core/view/plugins/events.js index 12314e01a..c39646c3a 100644 --- a/src/core/view/plugins/events.js +++ b/src/core/view/plugins/events.js @@ -49,7 +49,7 @@ function processTouches (touches) { return [] } -function isPCEvent (name) { +function isMouseEvent (name) { return name.startsWith('mouse') || ['contextmenu'].includes(name) } @@ -94,7 +94,7 @@ export function processEvent (name, $event = {}, detail = {}, target = {}, curre stopPropagation () {} }) - if (isPCEvent(name)) { + if (isMouseEvent(name)) { const { top } = getWindowOffset() -- GitLab