Forum

Thread tagged as: Question

MAP – disabling zoom on mouse scroll

I'm using the map template and wondered if there was a simple way of disabling zoom on mouse scroll as my map is full width across the page and it's very irritating with a magic mouse.

Emily Taylor

Emily Taylor 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like the Google maps API has an option for that:

scrollwheel: false,

You'll need to make a copy of our map code, add the option, and then specify it as a custom JS file. See the "Using your own map display code" section in the docs: https://docs.grabaperch.com/docs/templates/attributes/type/map/