提交 499fa577 编写于 作者: D DCloud_LXH

chore: isPCEvent -> isMouseEvent

上级 f1abb85b
...@@ -49,7 +49,7 @@ function processTouches (touches) { ...@@ -49,7 +49,7 @@ function processTouches (touches) {
return [] return []
} }
function isPCEvent (name) { function isMouseEvent (name) {
return name.startsWith('mouse') || ['contextmenu'].includes(name) return name.startsWith('mouse') || ['contextmenu'].includes(name)
} }
...@@ -94,7 +94,7 @@ export function processEvent (name, $event = {}, detail = {}, target = {}, curre ...@@ -94,7 +94,7 @@ export function processEvent (name, $event = {}, detail = {}, target = {}, curre
stopPropagation () {} stopPropagation () {}
}) })
if (isPCEvent(name)) { if (isMouseEvent(name)) {
const { const {
top top
} = getWindowOffset() } = getWindowOffset()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册