多点触控 touchEvents 未按其在 Safari Mobile 上应有的方式触发
我在 Safari Mobile 的页面上有各种 touchEvents 检测(一个控制器,如果你想知道......)。它们都独立地工作得很好,但是每当我按下第一个接触点时,如果我触摸一个新点,当我触发一个新点时,这些事件就会被触发。
例如:
- 我用手指握住棍子。它没有移动
- 我按下按钮,应该触发 touchStart 事件,但没有触发
- 如果我移动摇杆,则会触发 touchStart 事件
- 如果我放开按钮,则会触发 touchStart,但不会触发 touchEnd
- 如果我移动摇杆(touchMove),touchEnd被触发
你明白在我的例子中这是一个问题。我的按钮被延迟触发,或者被卡住,直到我移动操纵杆,等等......
有解决方法吗?谢谢
I have various touchEvents detection on a page on Safari Mobile (a controller, if you want to know...). They all work well indepedantly, but whenever I have a first touchpoint pressed, If I touch a new point, the events are triggered when I trigger a new one.
For example :
- I hold the stick with a finger. It's not moving
- I press a button, a touchStart event should be triggered but is not
- If I move the stick, the touchStart event is triggered
- If I let go of the button, the touchStart is triggered, but not the touchEnd
- If I move the stick (touchMove), the touchEnd is triggered
You understand how in my case it's a problem. I get buttons triggered with delay, or getting stuck until I move the stick, etc...
Is there a workaround ? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论