-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
singleclick event #108
Comments
Unfortunately all such workarounds are based on deciding whether to fire click after a particular timeout, and it makes applications that don't care about double-clicking less responsive. So I would implement something like "singleclick" support as a plugin, but not include it in the Leaflet core. |
Does such plugin already exist? |
Didn't yet heard of any. |
it is a pity. Is there any place where all shared plugins stored? |
See my thoughts on this here: #399 |
See this comment from @michael for an example solution. |
Closing as something that should go into a plugin. |
I'm working on a Leaflet registers click handlers in various situations. For example, when a marker is added to the map Strategy: If anyone sees a problem with this strategy or has a better strategy, please speak up! |
Here is a possible plugin: https://github.com/Alpstein/leaflet-singleclick_0.7 |
when a double click occurs two single click events are triggered which is a problem if you want to do something on single click but not double click
the firing of two single click within a double click is browser behaviour but there are possible workarounds
sparkle provides a jquery singleclick that may be usefull
http://balupton.com/projects/jquery-sparkle
The text was updated successfully, but these errors were encountered: