There is a google-map on the site. If while scrolling the page the mouse is on the map, the map scale changes, and the page does not scroll.
How to disable map scaling when hovering over the map?
There is a google-map on the site. If while scrolling the page the mouse is on the map, the map scale changes, and the page does not scroll.
How to disable map scaling when hovering over the map?
In the 3rd version of the API, it is sufficient to set the scrollwheel property of the MapOptions object to false .
Details on stackoverflow: How to disable mouse scroll-wheel scaling with Google Maps API
Or according to the method of such an example - http://jsfiddle.net/0u6v4jnp/. As for me, more rational and more convenient.
Source: https://ru.stackoverflow.com/questions/349325/
All Articles