Jump to content

LeafletJS map disable map scroll and enable element scroll when mouse is inside element

I want to keep it short here, but I am trying every place I know, to get help with this.

 

This stackovervflow question is written by me. I have a map, that's presented by LeafletJS. I have some mapfeatures, that when in a cluster of mapfeatures is clicked da list pops up in a div. But when I scroll inside that div the div does f*ck all and the map zooms in and out. I have made some efforts to try and solve this. The closest I got is described in the StackOverflow post linked below. It was an attempt made with JS Event Bubbling, but it was only partially successful. Thanks for reading.

 

https://stackoverflow.com/questions/62003454/disable-scroll-on-leafletjs-map-when-mouse-inside-infobox

A simple software developer from the far away land of Denmark

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×