adding preventDefault will keep the page from doing weird scrolling on mac, or when the map is embedded

This commit is contained in:
Connor Turland 2015-01-28 21:38:44 -05:00
parent 07e0aac7fd
commit 5d9305fb11

View file

@ -2449,6 +2449,7 @@ Extras.Classes.Navigation = new Class({
if(!this.config.zooming) return;
// START METAMAPS CODE
e.preventDefault();
if (e.target.id != 'infovis-canvas') return;
if (Metamaps.Create.newTopic.beingCreated) return;
// END METAMAPS CODE