This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Disable scroll wheel

0

But what if the OSM comes from an embed iframe? Just the iframe with the link: https://www.openstreetmap.org/export/embed.html?.....

Thats my case and I can see the zoom buttons but impossible to add any attr or function to avoid the mouse scroll inside :(

asked 23 Sep '20, 17:31

idotj's gravatar image

idotj
11111
accept rate: 0%

converted to question 23 Sep '20, 18:47

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701

This should probably be a new question, but see if https://gist.github.com/9to5IT/cdd01591813cb7a87c5b helps, and see also https://stackoverflow.com/questions/15494568/html-iframe-disable-scroll - this is about disabling scrolling for an iframe rather than OSM specifically.

(23 Sep '20, 17:47) EdLoach ♦

Source code available on GitHub .