diff --git a/lib/OpenLayers/Control/MouseDefaults.js b/lib/OpenLayers/Control/MouseDefaults.js index 60eca331ac..432bc207f2 100644 --- a/lib/OpenLayers/Control/MouseDefaults.js +++ b/lib/OpenLayers/Control/MouseDefaults.js @@ -130,7 +130,9 @@ OpenLayers.Control.MouseDefaults.prototype = this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; } else { - this.map.setCenter(this.map.center); + if (this.performedDrag) { + this.map.setCenter(this.map.center); + } } document.onselectstart=null; this.mouseDragStart = null;