Home » HTML5 & CSS3 » Disable Mouse Scroll from Zoom on Embedded Google Maps

Disable Mouse Scroll from Zoom on Embedded Google Maps

Are you trying to disable mouse scroll from Zoom on your embedded Google maps? Then here you have an easy solution. Google iframe map is provided with the default mouse scroll option. So here what we going to do is prevent mouse scroll with a layer using CSS.

If you not yet created a Google embed map then click here to create a new one. With a few simple steps you can create an iframe map, also you have instructions to create the map.

Once you created the embedded map it looks like the below code.

Note: You need to use your place and APIKEY in the above iframe.

Prevent Mouse Scroll from Zoom

In the above iframe, we created span tag with the class name of the layer and preventing the span with onclick="style.pointerEvents='none'"

By using .layer class we going to cover the part. Use the below code in your style.css to disable the mouse scroll.

Once you are done with everything you can see the mouse scroll disabled from the zoom. Below you can preview how it looks like.

Preview & Download

Was this article helpful?

Yes No

How can we improve it?


We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest


Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top