更改 Mobile Safari 上的触摸事件源

发布于 2024-09-30 23:21:45 字数 178 浏览 0 评论 0原文

我有两个重叠的图像。我触摸最上面的图像并开始移动 (touchmove) 手指。所有后续 touchmove 事件均由该图像接收。在交互过程中,我希望事件转到下面的图像,以便我可以移动它。

如何将事件源更改为下图?也就是说,一旦对象开始接收触摸事件,如何更改这些事件的目标?

I have two overlapping images. I touch the topmost image and start moving (touchmove) finger around. All subsequent touchmove events are received by that image. In the middle of this interaction I want the events to go to the image underneath, so that I can move it around instead.

How to change the event source to the image underneath? That is, once an object has started receiving touch events, how do I change the target of those events?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事还在继续 2024-10-07 23:21:45

我怀疑 Joe Blow 正在谈论在使用 Objective-C 构建的本机 iPhone 应用程序的上下文中处理触摸事件。

Eric 的问题是关于使用 JavaScript 处理 Mobile Safari 中的触摸事件。

虽然我可能会感到困惑...

I suspect that Joe Blow is talking about handling touch events in the context of a native iPhone app built with Objective-C.

Eric's question is about handling touch events in Mobile Safari with JavaScript.

I could be confused though...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文