preventDefault now happens in Events.js for all handled events.
This commit is contained in:
1 parent
fcadf842e5
commit
218ad77103
1 file changed
-3
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user