-
Notifications
You must be signed in to change notification settings - Fork 141
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
Double click on the legend propagates to the map in Chrome #51
Comments
The behaviour is strange... The basic example works fine also in chrome, the advanced example no.. The only difference in the code is the leaflet version @kingrollo I do not understand if your proposal code change is the solution of the problem..?? |
@kingrollo Those lines were likely copied verbatim from the Leaflet version of the layers class. It's possible the leaflet implementation changed as well. I'd be happy to merge a PR related to that kind of bug. |
My current workaround looks like: var layerControl = L.control.groupedLayers(baseMaps, overlays).addTo(this.map);
L.DomEvent.disableClickPropagation(layerControl._container);
L.DomEvent.disableScrollPropagation(layerControl._container); This solved the issue so far. |
Kinda late but I added:
|
Google Chrome is now touch-enabled, so
L.Browser.touch
returns true, meaning line 91 is called instead of lines 93 & 94.I'm guessing these lines are intended to correct the UX on mobile devices rather than Chrome?
The text was updated successfully, but these errors were encountered: