OpenLayers OpenLayers

Changeset 2075

Show
Ignore:
Timestamp:
12/16/06 10:47:37 (2 years ago)
Author:
crschmidt
Message:

Apply "patch to put event registering in correct place", euzuro, #448 .

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Control/MouseDefaults.js

    r1945 r2075  
    2121    initialize: function() { 
    2222        OpenLayers.Control.prototype.initialize.apply(this, arguments); 
    23  
    24         //register mousewheel events specifically on the window and document 
    25         OpenLayers.Event.observe(window, "DOMMouseScroll",  
    26                       this.onWheelEvent.bindAsEventListener(this)); 
    27         OpenLayers.Event.observe(window, "mousewheel",  
    28                       this.onWheelEvent.bindAsEventListener(this)); 
    29         OpenLayers.Event.observe(document, "mousewheel",  
    30                       this.onWheelEvent.bindAsEventListener(this)); 
    3123    }, 
    3224 
     
    4133        this.map.events.register( "mousemove", this, this.defaultMouseMove ); 
    4234        this.map.events.register( "mouseout", this, this.defaultMouseOut ); 
     35 
     36        //register mousewheel events specifically on the window and document 
     37        OpenLayers.Event.observe(window, "DOMMouseScroll",  
     38                      this.onWheelEvent.bindAsEventListener(this)); 
     39        OpenLayers.Event.observe(window, "mousewheel",  
     40                      this.onWheelEvent.bindAsEventListener(this)); 
     41        OpenLayers.Event.observe(document, "mousewheel",  
     42                      this.onWheelEvent.bindAsEventListener(this)); 
     43 
    4344    }, 
    4445