OpenLayers OpenLayers

Changeset 6556

Show
Ignore:
Timestamp:
03/19/08 15:53:59 (10 months ago)
Author:
crschmidt
Message:

Fix mousewheeling on eventpane layers. r=tschaub (Closes #1438)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Handler/MouseWheel.js

    r6416 r6556  
    105105            if (!overLayerDiv) { 
    106106                for(var i=0; i < this.map.layers.length; i++) { 
    107                     if (elem == this.map.layers[i].div) {  
     107                    // Are we in the layer div? Note that we have two cases 
     108                    // here: one is to catch EventPane layers, which have a  
     109                    // pane above the layer (layer.pane) 
     110                    if (elem == this.map.layers[i].div  
     111                        || elem == this.map.layers[i].pane) {  
    108112                        overLayerDiv = true; 
    109113                        break;