Don't call registerWheelEvents twice in MouseToolbar. Fixes #602. Rar.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2939 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2007-03-30 22:07:36 +00:00
parent 34352e7af7
commit 27dd14a80c

View File

@@ -66,8 +66,6 @@ OpenLayers.Control.MouseToolbar.prototype =
centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0));
this.switchModeTo("pan"); this.switchModeTo("pan");
this.registerWheelEvents();
return this.div; return this.div;
}, },