使用modernizr测试指针事件

cod*_*ove 1 javascript css debugging modernizr

指针事件:没有在ie中运行

Modernizr.testAllProps('pointerEvents');
Run Code Online (Sandbox Code Playgroud)

在ie中返回true.请帮助我说实话,或者说实话为什么我不能像其他浏览器那样实现它?

谢谢.

Pau*_*ish 7

查看https://github.com/Modernizr/Modernizr/issues/80,其中将与detect的测试和结果一起讨论:https://github.com/ausi/Feature-detection-technique-for-pointer-events /维基

您使用的是Modernizr的最新版本吗?如果是这样,请在#80线程上添加可重现的案例.