Skip to content

Instantly share code, notes, and snippets.

@ethyde
Last active August 29, 2015 14:07
Show Gist options
  • Save ethyde/93fde8cfd4665498eb6a to your computer and use it in GitHub Desktop.
Save ethyde/93fde8cfd4665498eb6a to your computer and use it in GitHub Desktop.
Stop scroll event propagation outside a Google map
var dom = document.getElementById("conteneur-map");
dom.addEventListener('DOMMouseScroll',function(event){
event.stopPropagation();
},false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment