Patch from euzuro for #448 . Make mouseWheel work on MouseToolbar.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2102 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-12-27 16:53:26 +00:00
parent 6c9cb570c7
commit 4cac0a24ea
2 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -48,8 +48,10 @@ OpenLayers.Control.MouseToolbar.prototype =
this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", centered, sz, "Drag the map to pan.");
centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0));
this.switchModeTo("pan");
this.registerWheelEvents();
return this.div;
},
_addButton:function(id, img, activeImg, xy, sz, title) {