-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Stop drag propagation, fixes #4249 #4306
Conversation
Stop drag propagation, fixes #4249
Humm, this is the opposite of what have been done in #3682. |
Damn. Maybe make stopPropagation optional, and enable it just for the map container? |
Would it be possible to expose the original event so it can be stopped outside the API. |
@turban, you should have it in |
@yohanboniface, I've not yet succeeded in doing that. Which event on the map should I listen to, to access the original event? |
I'd say something like: map.on('mousedown', function (e) {
e.originalEvent.stopPropagation();
}); See http://playground-leaflet.rhcloud.com/keri/edit?html,console,output for a playground ;) |
I was sure I tested that @yohanboniface, but on a second try this seems to work. I'm happy to withdraw my pull request @mourner. |
Reverted. |
New pull request with one commit.