[OpenLayers-Trac] Re: [OpenLayers] #3399: Control.DragFeature:
Sometimes not detected "mouseout" dragging points
OpenLayers
trac-20090302 at openlayers.org
Sun Jul 3 06:47:04 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 jorix):
Replying to [comment:6 ahocevar]:
> In this case it would be extremely helpful if you could provide your
code with added logging, and a dump of a log that shows where things
failed.
Of course!
[attachment:log_the_bug_unfiltered-3399.patch
log_the_bug_unfiltered-3399.patch] allows for easy annotations of missing
events in browsers.
About logs:
* "mouseout" and "safeOut" logs use {{{OpenLayers.Util.mouseLeft}}} to
detect "Out"
* "safeMove" use {{{Drag::mousemoveLeft}}} to detect "Out"
The patch includes the adaptation of two examples:
* "wfs-snap-split.html": Added the firebug.
* "modify-feature.html": Added {{{styleMap}}} for square dots, this
causes the failures are very frequent. Removed {{{Console.Log}}} on line
44.
Two examples of logs:
1. Leaving the map by the top:
{{{
safeMove | Out: false x=97,y=87 | polygon id=""
safeMove | Out: false x=97,y=77 | svg
id="OpenLayers.Layer.Vector_48_svgRoot"
mouseout | Out: false x=96,y=73 | polygon id=""
mouseout | Out: false x=96,y=73 | polygon id=""
mouseout | Out: false x=96,y=73 | polygon id=""
safeOut | Out: false x=96,y=73 | polygon id=""
safeMove | Out: false x=96,y=73 | polygon id=""
safeMove | Out: true x=96,y=68 | DIV id="map"
safeOut | Out: true x=95,y=66 | P id="shortdesc"
safeMove | Out: true x=95,y=66 | P id="shortdesc"
safeMove | Out: true x=95,y=64 | P id="shortdesc"
safeMove | Out: true x=95,y=63 | P id="shortdesc"
}}}
2. Moving towards !PanZoom and moving to another button
{{{
safeOut | Out: false x=78,y=163 | polygon id=""
safeMove | Out: false x=78,y=163 | polygon id=""
safeMove | Out: false x=73,y=163 | svg
id="OpenLayers.Layer.Vector_48_svgRoot"
mouseout | Out: false x=69,y=163 | polygon id=""
mouseout | Out: false x=69,y=163 | polygon id=""
mouseout | Out: false x=69,y=163 | polygon id=""
safeOut | Out: false x=69,y=163 | polygon id=""
safeMove | Out: false x=69,y=163 | polygon id=""
safeMove | Out: false x=63,y=163 | svg
id="OpenLayers.Layer.Vector_48_svgRoot"
safeMove | Out: false x=58,y=163 | svg
id="OpenLayers.Layer.Vector_48_svgRoot"
mouseout | Out: false x=56,y=164 | polygon id=""
mouseout | Out: false x=56,y=164 | polygon id=""
mouseout | Out: false x=56,y=164 | polygon id=""
safeOut | Out: false x=56,y=164 | polygon id=""
safeMove | Out: false x=56,y=164 | polygon id=""
safeMove | Out: true x=52,y=165 | IMG
id="OpenLayers.Control.PanZoom_2_zoomworld_innerImage"
safeMove | Out: true x=50,y=166 | IMG
id="OpenLayers.Control.PanZoom_2_zoomworld_innerImage"
... the same, 13 "safeMove" logs
safeMove | Out: true x=40,y=171 | IMG
id="OpenLayers.Control.PanZoom_2_zoomworld_innerImage"
safeOut | Out: true x=41,y=172 | IMG
id="OpenLayers.Control.PanZoom_2_zoomout_innerImage"
safeMove | Out: true x=41,y=172 | IMG
id="OpenLayers.Control.PanZoom_2_zoomout_innerImage"
}}}
These logs are obtained by using the example "wfs-snap-split.html" and
using Chrome. Using Safari or FF quickly observed similar results, with
either "wfs-snap-split.html" or "modify-feature.html" examples. [[BR]]
For "modify-feature.html" with FF failures occur only sporadically, see
ticket description.
--
Ticket URL: <http://trac.openlayers.org/ticket/3399#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list