Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn´t work in IE 11 #6

Open
hitchio opened this issue Apr 16, 2014 · 2 comments
Open

doesn´t work in IE 11 #6

hitchio opened this issue Apr 16, 2014 · 2 comments

Comments

@hitchio
Copy link

hitchio commented Apr 16, 2014

hi!
what i did as you described:

<script type="text/javascript">
$(document).ready(function(){
    PointerEventsPolyfill.initialize({});

    });
</script>

do i miss something?

thank you!
regards
strmiska

@ostrgard
Copy link

ostrgard commented May 1, 2014

Hi Hitchio!

pointer-events are supported in IE 11, so you shouldn't need to add this polyfill for that browser version. Here's the supported browsers: http://caniuse.com/pointer-events

If you want to feature detect with Modernizr, you can add this detector:

Modernizr.addTest('pointerevents',function(){
     return 'pointerEvents' in document.documentElement.style;
})

Credit goes to: Modernizr/Modernizr#80

@richnwilson
Copy link

I actually had an issue with IE 11 and using pointer-events:none; I believe it was because I was referencing a select tag. As a getaround I passed in the uePolyfillif function to force all IE use. This worked for me i.e.

    PointerEventsPolyfill.initialize({
        usePolyfillIf:function(){
            var ua = window.navigator.userAgent;
            var old_ie = ua.indexOf('MSIE ');
            var new_ie = ua.indexOf('Trident/');
            if ((old_ie > -1) || (new_ie > -1)) {
                return true;} 
            else {
                return false;}
                                }
                                });

HOWEVER, there is still an issue with it not working for IE8 (not sure if that's due to the select tags as well or a known bug).

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants