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

Zoom only works using trackpad on macbook (OSX 10.12) #14

Open
grubbins opened this issue May 23, 2018 · 2 comments
Open

Zoom only works using trackpad on macbook (OSX 10.12) #14

grubbins opened this issue May 23, 2018 · 2 comments

Comments

@grubbins
Copy link

When I visit the demo page, Shift + two finger scroll on the trackpad zooms nicely. However, Shift + mousewheel (with any USB mouse I have tried) does nothing. Same behaviour in Chrome and Safari.

I suspect this is something funky with jquery.mousewheel on OSX. I noticed that Google Maps has the same problem on my macbook.

@grubbins
Copy link
Author

Interestingly I tried changing the demo to use Ctrl instead of Shift and it seems to work just fine. I guess some confusion over horizontal scrolling?

@gavinchou
Copy link

gavinchou commented Feb 3, 2019

I ran into this issue too, replacing shiftKey with ctrlKey makes it work for me (macOS 10.13.6).

    $element.mousewheel(function (evt) {
        if (evt.ctrlKey) {

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

2 participants