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

OpenLayers trac-20090302 at openlayers.org
Sun Jul 3 17:38:36 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:  Needs More Work
--------------------------+-------------------------------------------------

Comment(by jorix):

 Replying to [comment:14 ahocevar]:
 > @jorix: while [attachment:openlayers-3399.1.patch] also adds some
 overhead, it adds less overhead than your patch. Can you please confirm
 that it also solves the issue?

 This does not work, it requires more adjustments. Try using
 {{{documentDrag = false}}}, oops! can not move the vertices. [[BR]]
 This is because in this case should be used {{{Drag::mousemoveLeft}}}
 instead of {{{Util.mouseLeft}}}, due to the differences between
 {{{"mousemove"}}} event object and {{{"mouseout"}}} event object.

 NOTE: I tried adding in "3399.1.patch" a timer and unregister "mouseout"
 (is redundant with {{{_docSafeOut}}}), this improves performance a bit.
 But it is difficult to evaluate objectively, since in many cases the
 execution of a method takes less than one millisecond.

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


More information about the Trac mailing list