You've already forked SmartisanNote.Remake
\"fix: 修复handleTouchStart函数中的重复代码和事件处理问题\"
This commit is contained in:
@@ -1059,10 +1059,11 @@ const handleTouchStart = (e) => {
|
||||
if (navigator.vibrate) {
|
||||
navigator.vibrate(10)
|
||||
}
|
||||
|
||||
// 阻止页面滚动
|
||||
e.preventDefault()
|
||||
}, 300) // 300毫秒长按触发拖拽
|
||||
|
||||
// 阻止页面滚动
|
||||
e.preventDefault()
|
||||
}
|
||||
}
|
||||
|
||||
// 添加拖拽指示器
|
||||
|
||||
Reference in New Issue
Block a user