-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Right-clicking on map does not fire 'click' event #1416
Comments
Most mapping libraries including Leaflet don't fire click on right click — only on left click. Instead, right click fires a separate |
I wanted to get a behavior where if I left-click on the map, it adds a Le mer. 7 oct. 2015 à 08:22, Vladimir Agafonkin [email protected]
|
@misterfresh that's a perfect use case for separate events (click for adding marker, contextmenu for removing it). |
I agree that we should generally just pass the DOM events as-is to the user. @misterfresh, I'll back out the change in c5fc748, but you can look at that for how to implement a right (or middle) click event by using |
Interesting, thanks. 2015-10-07 14:14 GMT+02:00 Bryan Housel [email protected]:
|
also related to #1405
The text was updated successfully, but these errors were encountered: