OpenLayers OpenLayers

Changeset 5975

Show
Ignore:
Timestamp:
02/03/08 12:20:39 (1 year ago)
Author:
elemoine
Message:

This commit solves the following problem with the select feature control: if
you create two select feature controls on the same vector layer, one with
hover:false that handles geometry type A only, and the other with hover:true
that handles geometry type B only, then if you click on a geometry of type A
and moves out of that geometry, the second control will unselect it. r=tschaub
(closes #1221)

Files:

Legend:

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

    r5614 r5975  
    212212                    this.triggerCallback(type, 'in', [this.feature]); 
    213213                } 
     214                this.lastFeature = this.feature; 
    214215                stopEvtPropag = true; 
    215216            } else { 
     
    220221                } 
    221222            } 
    222             this.lastFeature = this.feature; 
    223223        } else { 
    224224            if(previouslyIn || (click && this.lastFeature)) {