Apply "patch to put event registering in correct place", euzuro, #448 .
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2075 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -20,14 +20,6 @@ OpenLayers.Control.MouseDefaults.prototype =
|
|||||||
*/
|
*/
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
OpenLayers.Control.prototype.initialize.apply(this, arguments);
|
OpenLayers.Control.prototype.initialize.apply(this, arguments);
|
||||||
|
|
||||||
//register mousewheel events specifically on the window and document
|
|
||||||
OpenLayers.Event.observe(window, "DOMMouseScroll",
|
|
||||||
this.onWheelEvent.bindAsEventListener(this));
|
|
||||||
OpenLayers.Event.observe(window, "mousewheel",
|
|
||||||
this.onWheelEvent.bindAsEventListener(this));
|
|
||||||
OpenLayers.Event.observe(document, "mousewheel",
|
|
||||||
this.onWheelEvent.bindAsEventListener(this));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -40,6 +32,15 @@ OpenLayers.Control.MouseDefaults.prototype =
|
|||||||
this.map.events.register( "mouseup", this, this.defaultMouseUp );
|
this.map.events.register( "mouseup", this, this.defaultMouseUp );
|
||||||
this.map.events.register( "mousemove", this, this.defaultMouseMove );
|
this.map.events.register( "mousemove", this, this.defaultMouseMove );
|
||||||
this.map.events.register( "mouseout", this, this.defaultMouseOut );
|
this.map.events.register( "mouseout", this, this.defaultMouseOut );
|
||||||
|
|
||||||
|
//register mousewheel events specifically on the window and document
|
||||||
|
OpenLayers.Event.observe(window, "DOMMouseScroll",
|
||||||
|
this.onWheelEvent.bindAsEventListener(this));
|
||||||
|
OpenLayers.Event.observe(window, "mousewheel",
|
||||||
|
this.onWheelEvent.bindAsEventListener(this));
|
||||||
|
OpenLayers.Event.observe(document, "mousewheel",
|
||||||
|
this.onWheelEvent.bindAsEventListener(this));
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user