Last active
August 16, 2021 12:51
-
-
Save 9to5IT/cdd01591813cb7a87c5b to your computer and use it in GitHub Desktop.
HTML: Disabling mouse scrolling in iFrame (Example: Disable zooming for Google Maps iframe)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe style="pointer-events:none;" src=""></iframe> | |
EXAMPLE Google Maps iFrame: | |
----------------------------- | |
<iframe style="pointer-events:none; border:0;" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3540.087495492481!2d153.02746689999998!3d-27.466535299999965!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6b915a1d2f662eb3%3A0x4f3c5ce2c1aafa48!2sAdelaide+St%2C+Brisbane+QLD+4000!5e0!3m2!1sen!2sau!4v1412077371383" width="600" height="300" frameborder="0"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment