Let the controls decide about stopPropagation and preventDefault.
This commit is contained in:
@@ -63,6 +63,8 @@ ol.control.Navigation.prototype.zoomMap = function(evt) {
|
||||
return;
|
||||
}
|
||||
map.setZoom(map.getZoom()-delta, map.getEvents().getPointerPosition(evt));
|
||||
// We don't want the page to scroll.
|
||||
evt.preventDefault();
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user