多点触控 touchEvents 未按其在 Safari Mobile 上应有的方式触发

发布于 2024-12-26 05:11:32 字数 412 浏览 2 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文