[OpenLayers-Trac] [OpenLayers] #2879: Control.Selectfeature: clickout doesn't get triggered after map pan

OpenLayers trac-20090302 at openlayers.org
Wed Oct 13 09:46:14 EDT 2010


#2879: Control.Selectfeature: clickout doesn't get triggered after map pan
-----------------------------------+----------------------------------------
 Reporter:  jschumann              |       Owner:  elemoine    
     Type:  bug                    |      Status:  new         
 Priority:  major                  |   Milestone:  2.11 Release
Component:  Control.SelectFeature  |     Version:  2.10        
 Keywords:  clickout, handler,pan  |       State:              
-----------------------------------+----------------------------------------
 When having a SelectFeatureControl on the map with clickout:true; it does
 not trigger the clickoutFeature() after the map panned via mouse drag.

 Reproduce on http://openlayers.org/dev/examples/select-feature.html:
 - draw point
 - click "select feature" and check "click out to unselect features"
 - click on the point -> gets highlighted
 - click anywhere on the map -> point gets unhighlighted -> correct
 - highlight point again, then click "navigate" and drag the map
 - click "select feature again" (point is still highlighted)
 - click anywhere on the map -> point does not get unhighlighted -> wrong!
 - only clicking the point again to unhighlight makes it work again

 Editing OpenLayers/Handler/Feature.js in the deactivate method  and
 commenting out the line "this.lastFeature = null;" as suggested by
 elemoine on the mailinglist does help but maybe breaks other things.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2879>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list