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

Leaflet gesture handling #1002

Merged
merged 3 commits into from
Mar 26, 2020

Conversation

tolot27
Copy link
Contributor

@tolot27 tolot27 commented Mar 26, 2020

With this PR it is possible to use the mouse scroll wheel in combination with Ctrl/Cmd to zoom in/out the map. It fixes #260.

I've tested it on desktop browsers as well as on Android phone.

The Leaflet.Sleep code was inactive, because src/util/leaflet-plugins.js was removed with commit f972a8a.

@jameshadfield jameshadfield temporarily deployed to auspice-leaflet-gesture-suryom March 26, 2020 22:55 Inactive
@jameshadfield
Copy link
Member

Just Works. Thanks @tolot27 this is a really nice improvement. Should be released in a new version today.

@jameshadfield jameshadfield merged commit 759834c into nextstrain:master Mar 26, 2020
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

Successfully merging this pull request may close these issues.

Allow mouse scroll to zoom into map
2 participants