From f12a20d7aafc1a96c66f691af58f6dc5be729ca8 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 22 Jun 2012 17:14:46 +0200 Subject: [PATCH] Stop the event chain when we have handled the event. --- src/ol/control/Navigation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/control/Navigation.js b/src/ol/control/Navigation.js index 34edc79335..dc391b4210 100644 --- a/src/ol/control/Navigation.js +++ b/src/ol/control/Navigation.js @@ -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); \ No newline at end of file