Viewing 1 replies (of 1 total)
  • Thread Starter Hudson Phillips

    (@harbormark)

    Didn’t get a reply on this, but kept thinking of a work around. It’s not elegant, but here’s what worked.

    =========

    I added a div around the simplemap shortcode and gave it a class of ‘mapOverlay’. To my stylesheet, I added the following:
    .mapOverlay {pointer-events: none;}

    Then I added a script to enable pointer events once the user clicks on the map (actually the surrounding div) once again

    jQuery('.mapOverlay').click(function () {
           jQuery('.mapOverlay #simplemap').css("pointer-events", "auto");   });
Viewing 1 replies (of 1 total)

The topic ‘Disable Scroll Zoom’ is closed to new replies.