IE10 是否支持触摸事件?
我正在考虑做一个针对使用触摸屏的 Internet Explorer 10 的项目。我目前没有方便的触摸屏,但需要知道 Internet Explorer 10 是否支持或将支持 DOM 触摸事件。
I'm looking at doing a project that would target Internet Explorer 10 using a touch screen. I don't currently have a touch screen handy, but need to know if Internet Explorer 10 does or will support DOM touch events.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
更新:触摸事件正在开发< /a> 在 Internet Explorer 中。
虽然 IE10 不支持 touchstart 和 touchend 类型的事件,但它将支持由指针组成的可以说是更高级的模型。这些通用指针捕获来自笔、鼠标和手指的输入。帖子 IE10 和 Metro 风格应用程序的触摸输入,日期为 2011 年 9 月。
您应该能够获得较旧的版本touch 模型只需进行一点功能检测和巧妙的脚本即可与 MSPointer 模型良好配合:
有关指针和手势事件的更多信息可以在此处找到:http://msdn.microsoft.com/en-US/library/ie/hh673557.aspx
重要进展
Update: Touch Events are in development in Internet Explorer.
While IE10 will not support the touchstart and touchend type of events, it will support an arguably superior model consisting of Pointers. These generic pointers capture input from pens, mice, and fingers. A great primer was given in the post Touch Input for IE10 and Metro style Apps, dated Sept, 2011.
You should be able to get the older touch model to work well with the MSPointer model with just abit of feature-detection and clever-scripting:
More on Pointer and Gesture events can be found here: http://msdn.microsoft.com/en-US/library/ie/hh673557.aspx
Important Developments
IE 10 似乎不支持 iOS 和其他移动浏览器使用的“touchstart”事件系列。然而,IE 10 使用自己的“MSPointer”事件支持多点触摸事件。请参阅 http://msdn.microsoft.com/en-us/ie/hh272903# _DOMTouch 了解详细信息和示例网站,例如 http://ie.microsoft.com/testdrive/Graphics/TouchEffects。
It appears IE 10 doesn't support the 'touchstart' family of events used by iOS and other mobile browsers. IE 10 does however support multi-touch events using their own 'MSPointer' events. See http://msdn.microsoft.com/en-us/ie/hh272903#_DOMTouch for details and example sites like http://ie.microsoft.com/testdrive/Graphics/TouchEffects.