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

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <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"); }); });

Related: See More


Questions / Comments: