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

Make scroll events work on the numeric input fields #2

Closed
IvanSanchez opened this issue Jul 20, 2020 · 0 comments · Fixed by #3
Closed

Make scroll events work on the numeric input fields #2

IvanSanchez opened this issue Jul 20, 2020 · 0 comments · Fixed by #3

Comments

@IvanSanchez
Copy link

I like to use my mouse's scrollwheel on any <input type=number>; that includes the one in this plugin.

However, scroll events are being propagated to the map, which zooms the map, which feels weird. These events should be listened to in this control, and their propagation stopped, maybe with something like

this._container.on('wheel', L.DomEvent.stop)
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 a pull request may close this issue.

1 participant