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

View File

@@ -33,6 +33,15 @@ OpenLayers.Control.MouseDefaults.prototype =
this.map.events.register( "mousemove", this, this.defaultMouseMove );
this.map.events.register( "mouseout", this, this.defaultMouseOut );
this.registerWheelEvents();
},
/**
*
*/
registerWheelEvents: function() {
//register mousewheel events specifically on the window and document
OpenLayers.Event.observe(window, "DOMMouseScroll",
this.onWheelEvent.bindAsEventListener(this));