admin管理员组

文章数量:1326344

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
}

本文标签: javascriptTest pointer events in ie with modernizrStack Overflow