was there a specific reason why we were double-zooming in toolbar mode but single-zooming in normal mode?

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1475 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-09-15 19:25:22 +00:00
parent c38874b374
commit 74dfbbc927

View File

@@ -89,7 +89,7 @@ OpenLayers.Control.MouseToolbar.prototype =
this.switchModeTo("pan");
this.performedDrag = false;
var newCenter = this.map.getLonLatFromViewPortPx( evt.xy );
this.map.setCenter(newCenter, this.map.zoom + 2);
this.map.setCenter(newCenter, this.map.zoom + 1);
Event.stop(evt);
return false;
},