Stop the event chain when we have handled the event.
This commit is contained in:
@@ -46,6 +46,7 @@ ol.control.Navigation.prototype.deactivate = function() {
|
||||
*/
|
||||
ol.control.Navigation.prototype.moveMap = function(evt) {
|
||||
this.getMap().moveByPx(evt.dx, evt.dy);
|
||||
return false;
|
||||
};
|
||||
|
||||
ol.control.addControl('navigation', ol.control.Navigation);
|
||||
Reference in New Issue
Block a user