Title: Disable Scroll Zoom
Last modified: August 30, 2016

---

# Disable Scroll Zoom

 *  Resolved [Hudson Phillips](https://wordpress.org/support/users/harbormark/)
 * (@harbormark)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/disable-scroll-zoom/)
 * Hello,
 * Is there a way to disable the map from zooming whenever the cursor is placed 
   over it? I’m having a problem where users scroll down the page and hit the map,
   affecting the zoom level automatically.
 * Thanks
 * [https://wordpress.org/plugins/simplemap/](https://wordpress.org/plugins/simplemap/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Hudson Phillips](https://wordpress.org/support/users/harbormark/)
 * (@harbormark)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/disable-scroll-zoom/#post-6779330)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/simplemap_cca5a5.svg)
 * [SimpleMap Store Locator](https://wordpress.org/plugins/simplemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplemap/)
 * [Active Topics](https://wordpress.org/support/plugin/simplemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplemap/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Hudson Phillips](https://wordpress.org/support/users/harbormark/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/disable-scroll-zoom/#post-6779330)
 * Status: resolved