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

OpenLayers trac-20090302 at openlayers.org
Sat Jul 2 11:21:32 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:  Review      
Changes (by jorix):

  * state:  => Review


 [attachment:3399.patch 3399.patch] fixes the problem, both when
 {{{documentDrag=false}}} as when {{{documentDrag=true}}}.

 Details of implementation:

  * Is introduced the {{{safeMouseout}}} property in {{{Handler.Drag}}}
 that is used only in {{{Control.DragFeature}}}
  * To declare {{{_docSafeOut}}} function has used a similar statement of
 {{{_docMove}}} or {{{_docUp}}} in constructor.
  * Is used {{{"mousemove"}}} on {{{document}}} instead of {{{"mouseout"}}}
 because when leave the map to {{{PanZoom}}} control {{{"mouseout"}}} never
 occurs. See above details of tests.
  * Changed {{{ajustXY}}} method by {{{ajustEvent}}} function to make the
 code more compact. This function includes: create event, ajustXY and
  * The patch includes tests.

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

More information about the Trac mailing list