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

No wheelmouse under MsIE 11 #33

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments
Open

No wheelmouse under MsIE 11 #33

GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Start demo page under MsIE11 http://www.cyberz.org/projects/SVGPan/tiger.svg
2. Try to zoom with the mousewheel

What is the expected output? What do you see instead?
The SVG should be zoomed but nothing happens


What version of the product are you using? On what operating system?
MSIE11 64b, Ms Windows7 64b

The MSIE11 user agent string has changed. It is no longer presented as IE but 
as Mozilla like web browser.

A quick fix is to add MSIE11 detection during wheelmouse event listener init.

In SVGPan.js

var isIE11 = !!navigator.userAgent.match(/Trident\/7\./);
    if ((navigator.userAgent.toLowerCase().indexOf('webkit') >= 0) || isIE11)
        window.addEventListener('mousewheel', handleMouseWheel, false); // Chrome/Safari/MsIE11





Original issue reported on code.google.com by [email protected] on 9 Sep 2014 at 1:13

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

No branches or pull requests

1 participant