\"fix: 修复setTimeout回调函数中的事件对象引用问题\"

This commit is contained in:
yuantao
2025-10-16 10:50:22 +08:00
parent a1b3fe7fb0
commit a55f8249ae

View File

@@ -1097,10 +1097,10 @@ const handleTouchStart = (e) => {
if (navigator.vibrate) { if (navigator.vibrate) {
navigator.vibrate(10) navigator.vibrate(10)
} }
}, 300) // 300毫秒长按触发拖拽
// 阻止页面滚动 // 阻止页面滚动
e.preventDefault() e.preventDefault()
}, 300) // 300毫秒长按触发拖拽
} }
// 处理触摸移动事件 // 处理触摸移动事件