最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Test pointer events in ie with modernizr - Stack Overflow

programmeradmin6浏览0评论

pointer-events:none isn't functioning in ie, yet

Modernizr.testAllProps('pointerEvents');

returns true in ie. Please help me make ie tell the truth, or if it is telling the truth why can't I implement it like I can in other browsers?

Thanks you.

pointer-events:none isn't functioning in ie, yet

Modernizr.testAllProps('pointerEvents');

returns true in ie. Please help me make ie tell the truth, or if it is telling the truth why can't I implement it like I can in other browsers?

Thanks you.

Share Improve this question asked Aug 2, 2012 at 22:47 codelovecodelove 2,0165 gold badges28 silver badges37 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

Check out https://github./Modernizr/Modernizr/issues/80 where this is discussed along with the detect's testing and results: https://github./ausi/Feature-detection-technique-for-pointer-events/wiki

Are you using a recent build of Modernizr? If so, chime in with a reproducible case on the #80 thread.

Looks like this will be a flag in Modernizr 3+ (v3 is currently in beta beta). The usage is very simple:

if ( Modernizr.csspointerevents ) {
    // use pointer events
} else {
    // do fallback magic
}
发布评论

评论列表(0)

  1. 暂无评论