[OpenLayers-Trac] [OpenLayers] #3239: The use of "eventsDiv" cause problems with "mouseout"

OpenLayers trac-20090302 at openlayers.org
Sun Apr 3 05:42:59 EDT 2011


#3239: The use of "eventsDiv" cause problems with "mouseout"
---------------------+------------------------------------------------------
 Reporter:  jorix    |       Owner:  tschaub     
     Type:  bug      |      Status:  new         
 Priority:  major    |   Milestone:  2.11 Release
Component:  Handler  |     Version:  SVN         
 Keywords:           |       State:              
---------------------+------------------------------------------------------
 After #3091 the controls are out of "eventsDiv". And they behave as if
 they were off the map, not affected by events on the map.

 To avoid problems with the handlers "Drag", "Point" and "Hover" must
 identify the "mouseout" events when the mouse enters into "div" of a
 control.


 Problems:

 1 Drag the map without press the mouse (using example.html)
  * Initiate a drag
  * Release the mouse over a control
  * Move, oops! the drag is still active

  (With panel.html can see the same effect produced by
 Control.MouseDefaults)

 2 The point not follow the cursor (using editingtoolbar.html)
  * Select draw (point, line or polygon)
  * Move, ok! the point follows the cursor.
  * Initiate a drag
  * Release the mouse over a control
  * Move, oops! the point does not follow the cursor.

 The effect to "Hover" are more subtle. With "GetFeature-wfs.html" can
 activate a state when the cursor is outside its area, over a control (It
 does not trigger the "move").

 Proposal: use "eventsDiv" instead of "viewPortDiv" on "mouseout"

 NOTE: This patch also fixes #3005

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


More information about the Trac mailing list