leaflet-groupedlayercontrol icon indicating copy to clipboard operation
leaflet-groupedlayercontrol copied to clipboard

Unable to scroll layer list with scroll wheel

Open NHellFire opened this issue 7 years ago • 3 comments

Using the scroll wheel to scroll a long layer list results in the map zooming instead.

jsfiddle showing this: https://jsfiddle.net/LnzN2/1454/ It works as expected without using grouped layer control: https://jsfiddle.net/LnzN2/1455/

NHellFire avatar Feb 13 '18 04:02 NHellFire

Looked to leaflet layer control for inspiration. Take a look at PR #64 and see if that helps.

newmanw avatar Jun 29 '18 14:06 newmanw

See #62

NHellFire avatar Jun 30 '18 01:06 NHellFire

@NHellFire Sorry, didn't see that PR. I don't think it updates the height of the layer control based on the window height to prevent the overflow.

screen shot 2018-06-30 at 7 41 50 pm

PR #64 also updates the height the same way leaflet does. So that the layer control does not overflow the window.

screen shot 2018-06-30 at 7 44 04 pm

newmanw avatar Jul 01 '18 01:07 newmanw