"Google Map mouse scroll off"
Bootstrap 3.3.0 Snippet by iammahesh

<div class="container"> <h1 class="text-center">Google Map mouse scroll off</h1> <hr> <div class="col-xs-12"> <h1>Please mouse scroll</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> </div> <div class="col-xs-12"> <div class="gmap maps"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6464.810705018464!2d79.7056496244725!3d14.623243509152097!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3a4ca2ce9ba62ff1%3A0x5f3aaa8ccdc5b9e7!2sPeramana%2C+Andhra+Pradesh+524308!5e1!3m2!1sen!2sin!4v1457360979595" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe> </div> </div> <div class="col-xs-12"> <h1>This sample Text</h1> <h1>Please mouse scroll</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> <h1>map mouse scroll off in html5</h1> </div> </div>
.maps iframe{ pointer-events: none; }
$(document).ready(function() { $('.maps').click(function () { $('.maps iframe').css("pointer-events", "auto"); }); $( ".maps" ).mouseleave(function() { $('.maps iframe').css("pointer-events", "none"); }); });

Similar snippets: See More


Comments:

Lintang pinanjera 2017-04-01 04:34:56
    Thanks For Share This... Many begginer like me Found the problem about google maps.. keep share

Commenting will be back soon.