更改 Mobile Safari 上的触摸事件源
我有两个重叠的图像。我触摸最上面的图像并开始移动 (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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑 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...