OpenLayers OpenLayers

Changeset 2102

Show
Ignore:
Timestamp:
12/27/06 11:53:26 (2 years ago)
Author:
crschmidt
Message:

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

Files:

Legend:

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

    r2075 r2102  
    3434        this.map.events.register( "mouseout", this, this.defaultMouseOut ); 
    3535 
     36        this.registerWheelEvents(); 
     37 
     38    }, 
     39 
     40    /** 
     41     *  
     42     */ 
     43    registerWheelEvents: function() { 
     44         
    3645        //register mousewheel events specifically on the window and document 
    3746        OpenLayers.Event.observe(window, "DOMMouseScroll",  
  • trunk/openlayers/lib/OpenLayers/Control/MouseToolbar.js

    r1721 r2102  
    4949        centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); 
    5050        this.switchModeTo("pan"); 
     51 
     52        this.registerWheelEvents(); 
     53 
    5154        return this.div; 
    52          
    5355    }, 
    5456