• ResolvedModerator cubecolour

    (@numeeja)


    Thank you for this great plugin.

    Is it possible to prevent the map zooming in when scrolling the page with a mouse or via a two finger drag on the touchpad whenever the cursor is over the map, or would it be possible for an option to be added to enable a solution for this – perhaps something similar to the feature which can be enabled on Google Maps which uses map.setOptions({scrollwheel:false});?

    I have attempted a fix by enqueung the leaflet.sleep script from https://github.com/CliffCloud/Leaflet.Sleep however this did not seem to work for me.

    The site I am using this on is only on a local installation at the moment, however the zoom on scroll behaviour is the same on your waymark demo page.

    • This topic was modified 5 years, 4 months ago by cubecolour. Reason: added details of leaflet.sleep
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe

    (@morehawes)

    Hi numeeja,

    Thanks for your suggestion and your kind words! I agree that there was room for improvement here.

    As per your suggestion, I have integrated Leaflet.Sleep into Waymark, which I believe to be a good solution for this. Please update to version 0.9.2 to see this.

    Thanks again,

    Joe

    Moderator cubecolour

    (@numeeja)

    Thanks Joe, I’ve just updated and it is working perfectly.

    Plugin Author Joe

    (@morehawes)

    Great news. Happy to help and thanks again for the suggestion.

    Joe

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Scrolling the page zooms the map’ is closed to new replies.