preventDefault now happens in Events.js for all handled events.

This commit is contained in:
ahocevar
2012-06-24 13:43:53 +02:00
parent fcadf842e5
commit 218ad77103

View File

@@ -62,10 +62,7 @@ ol.control.Navigation.prototype.zoomMap = function(evt) {
if (Math.abs(delta) === 0) {
return;
}
map.setZoom(map.getZoom()-delta, map.getEvents().getPointerPosition(evt));
evt.preventDefault();
return false;
};