简体   繁体   English

Internet Explorer 中的 React Touch 事件不起作用

[英]React Touch events in Internet Explorer are not working

I build and application using React, this app works fine over IOS,Android, Chrome, Firefox, but I found that in IE , the touch events (onTouchCancel onTouchEnd onTouchMove onTouchStart) are not firing.我使用 React 构建和应用程序,这个应用程序在 IOS、Android、Chrome、Firefox 上运行良好,但我发现在 IE 中,触摸事件(onTouchCancel onTouchEnd onTouchMove onTouchStart)没有触发。

I tested some examples of react at react-rocks page like http://swizec.github.io/react-particles-experiment/ it doesn't works over IE.我在 react-rocks 页面上测试了一些反应示例,​​例如http://swizec.github.io/react-particles-experiment/它不适用于 IE。

So in conclusion my question is, Does react support IE touch Events?所以总而言之,我的问题是,react 是否支持 IE 触摸事件? Is there a way to implement or subscribe the events to a component?有没有办法实现或订阅组件的事件?

I appreciate any help, thanks.我感谢任何帮助,谢谢。

I decided to use react-hammerjs to avoid this kind of troubles in my cross-platform application.我决定在我的跨平台应用程序中使用 react-hammerjs 来避免这种麻烦。

https://github.com/JedWatson/react-hammerjs http://hammerjs.github.io/api/ https://github.com/JedWatson/react-hammerjs http://hammerjs.github.io/api/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM