You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
When a label has a click event on it, the event is fired in case a drag action is performed starting on the label. See http://jsfiddle.net/A1an/mqL7h6p5/
If the map is dragged so that the label gets out of it, the event is not fired any more.
I would expect the clickable label to detect a drag and avoid firing a click event in that case. Any idea how to solve it?
The text was updated successfully, but these errors were encountered:
It seems to have something to do with the _fireMouseEvent function on line 234 (Label.js) where 'mousedown' is treated specially. Looking at the divIcon code and its parents Icon and Class I could find no event handling at all... where is that defined?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When a label has a click event on it, the event is fired in case a drag action is performed starting on the label. See http://jsfiddle.net/A1an/mqL7h6p5/
If the map is dragged so that the label gets out of it, the event is not fired any more.
I would expect the clickable label to detect a drag and avoid firing a click event in that case. Any idea how to solve it?
The text was updated successfully, but these errors were encountered: