fix: android 长按重复事件

This commit is contained in:
Pang
2023-12-21 19:14:56 +08:00
committed by kuaifan
parent 6eabba9679
commit 327cdbc873
+3 -1
View File
@@ -16,7 +16,9 @@ const longpress = {
el.__longpressContextmenu__ = (e) => {
e.preventDefault()
e.stopPropagation()
callback(e, el)
if (!isSupportTouch) {
callback(e, el)
}
}
el.addEventListener('contextmenu', el.__longpressContextmenu__);
// 不支持touch