Stop the event chain when we have handled the event.

This commit is contained in:
ahocevar
2012-06-22 17:14:46 +02:00
parent 0420d2efb9
commit f12a20d7aa

View File

@@ -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);