Fix mousewheeling on eventpane layers. r=tschaub (Closes #1438)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6556 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -104,7 +104,11 @@ OpenLayers.Handler.MouseWheel = OpenLayers.Class(OpenLayers.Handler, {
|
||||
|
||||
if (!overLayerDiv) {
|
||||
for(var i=0; i < this.map.layers.length; i++) {
|
||||
if (elem == this.map.layers[i].div) {
|
||||
// Are we in the layer div? Note that we have two cases
|
||||
// here: one is to catch EventPane layers, which have a
|
||||
// pane above the layer (layer.pane)
|
||||
if (elem == this.map.layers[i].div
|
||||
|| elem == this.map.layers[i].pane) {
|
||||
overLayerDiv = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user