使用 ThreeJS 开发网页游戏。在 iOS 上,长按会在 0.5 秒过去后产生小的触觉振动反馈。
由于我希望用户能够按住手指四处走动,因此这是一种分心。
我已经为touchStart, touchEnd, touchMove, touchCancel, and 使用了 preventDefault 和 stopPropagation ,contextMenu我错过了什么?
每个都是这样实现的:
function onTouchStart(event) {
event.preventDefault();
event.stopPropagation();
...
Run Code Online (Sandbox Code Playgroud)
谢谢!