preventDefault now happens in Events.js for all handled events.
This commit is contained in:
@@ -62,10 +62,7 @@ ol.control.Navigation.prototype.zoomMap = function(evt) {
|
|||||||
if (Math.abs(delta) === 0) {
|
if (Math.abs(delta) === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
map.setZoom(map.getZoom()-delta, map.getEvents().getPointerPosition(evt));
|
map.setZoom(map.getZoom()-delta, map.getEvents().getPointerPosition(evt));
|
||||||
|
|
||||||
evt.preventDefault();
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user