【问题标题】:React Touch events in Internet Explorer are not workingInternet Explorer 中的 React Touch 事件不起作用
【发布时间】:2016-05-27 19:33:33
【问题描述】:

我使用 React 构建和应用程序, 这个应用程序在 IOS、Android、Chrome、Firefox 上运行良好, 但我发现在 IE 中,触摸事件 (onTouchCancel onTouchEnd onTouchMove onTouchStart) 没有开火。

我在 react-rocks 页面测试了一些反应示例 喜欢http://swizec.github.io/react-particles-experiment/ 它不适用于 IE。

所以最后我的问题是,React 是否支持 IE 触摸事件? 有没有办法实现或订阅组件的事件?

感谢任何帮助,谢谢。

【问题讨论】:

标签: javascript jquery cordova internet-explorer reactjs


【解决方案1】:

我决定在我的跨平台应用程序中使用 react-hammerjs 来避免这种麻烦。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-30
    • 2023-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多