Multitouch touchEvents not triggered as they should on Safari Mobile

隐身守侯 提交于 2019-12-12 09:06:53

问题


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

来源:https://stackoverflow.com/questions/8839333/multitouch-touchevents-not-triggered-as-they-should-on-safari-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!