ol.MapBrowserEvent: call browserEvent.{preventDefault|stopPropagation}

This commit is contained in:
Frederic Junod
2013-06-14 09:45:45 +02:00
parent 4392feef1b
commit 2bd87313cd
6 changed files with 20 additions and 4 deletions

View File

@@ -52,6 +52,5 @@ ol.interaction.DoubleClickZoom.prototype.handleMapBrowserEvent =
ol.interaction.Interaction.zoomByDelta(map, view, delta, anchor,
ol.interaction.DOUBLECLICKZOOM_ANIMATION_DURATION);
mapBrowserEvent.preventDefault();
browserEvent.preventDefault();
}
};