-
Notifications
You must be signed in to change notification settings - Fork 637
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
Path $on click, stops working post pan #313
Comments
💯 Same behavior. @tombatossals Do you know if it's a angular-leaflet-directive issue? |
I have experienced the same problem. 😞 |
Could anyone post a jsfiddle with this behaviour? |
This fiddle should illustrate it. In summary, click events work fine on paths until the user pans the map. At that point, click events appear to no longer fire. |
@nmccready, I was just investigating this issue, it seems that in the default event propagation behaviour, where all the path events are propagated, when the map is panned the events stop propagating. But if you specify which events must be propagated, it's working ok. I have created an example, based on @eczajk1 jsfiddle, to illustrate it, I'm sending a PR. |
thanks I'll take a look |
I wasn't privy to events broadcast directive, but I suppose it solves my issue, fyi. |
This issue was moved to angular-ui/ui-leaflet#7 |
I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it. |
when you move the map click stops working on paths
The text was updated successfully, but these errors were encountered: