[OpenLayers-Trac] Re: [OpenLayers] #3399: Control.DragFeature: Sometimes not detected "mouseout" dragging points

OpenLayers trac-20090302 at openlayers.org
Sun Jul 3 11:26:34 EDT 2011

#3399: Control.DragFeature: Sometimes not detected "mouseout" dragging points
 Reporter:  jorix         |       Owner:                        
     Type:  bug           |      Status:  new                   
 Priority:  minor         |   Milestone:  2.11 Release          
Component:  Handler.Drag  |     Version:  2.10                  
 Keywords:                |       State:  Awaiting User Feedback

Comment(by ahocevar):

 I was finally able to drag this down to OpenLayers.Util.mouseLeft failing,
 and here's the evidence. Apply [attachment:dragfeature-mouseleft.patch] to
 current trunk, fire up the modify-feature.html example, draw a polygon,
 modify it, and drag its vertices outside the map. You'll see something
 like the following in log:
 The first true-documentevent sequence is from a working drag that
 continues outside the map. The second true is from a drag that stops at
 the map border.

 Further explanation: Both log outputs are generated in
 Handler.Drag::mouseout. The logged true is the handler's started property.
 documentevents is logged as soon as document dragging is activated. The
 only step in between is the check that invovles OpenLayers.Util.mouseLeft
 - which has to return true so the documentevents log point is reached.

Ticket URL: <http://trac.openlayers.org/ticket/3399#comment:11>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer

More information about the Trac mailing list