You've already forked SmartisanNote.Remake
\"fix: 修复setTimeout回调函数中的事件对象引用问题\"
This commit is contained in:
@@ -1097,10 +1097,10 @@ const handleTouchStart = (e) => {
|
|||||||
if (navigator.vibrate) {
|
if (navigator.vibrate) {
|
||||||
navigator.vibrate(10)
|
navigator.vibrate(10)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 阻止页面滚动
|
|
||||||
e.preventDefault()
|
|
||||||
}, 300) // 300毫秒长按触发拖拽
|
}, 300) // 300毫秒长按触发拖拽
|
||||||
|
|
||||||
|
// 阻止页面滚动
|
||||||
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理触摸移动事件
|
// 处理触摸移动事件
|
||||||
|
|||||||
Reference in New Issue
Block a user