diff --git a/src/core/view/plugins/events.js b/src/core/view/plugins/events.js index 12314e01a6073b45f6977037b0433fa4f3a9273b..c39646c3a8315a50dfc9391980d4dbd24c396799 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()