Created
February 19, 2017 21:55
-
-
Save devhero/5e125825bf07429354155a8dfd97f560 to your computer and use it in GitHub Desktop.
embedded google maps disable wheel zoom - http://stackoverflow.com/questions/21992498/disable-mouse-scroll-wheel-zoom-on-embedded-google-maps
This file contains hidden or 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
$(function() { | |
var map = '#gmap-holder'; | |
$(map).find('iframe').css('pointer-events', 'none'); | |
$(map).click(function(e) { | |
$(this).find('iframe').css('pointer-events', 'all'); | |
}).mouseleave(function(e) { | |
$(this).find('iframe').css('pointer-events', 'none'); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment