jkuoppam

Adding vertices fail if the mouse is moving

Discussion created by jkuoppam on May 18, 2011
This behaviour can be demonstrated in http://help.arcgis.com/en/webapi/javascript/arcgis/demos/graphics/graphics_add.html . The browser I'm using is IE8 but I think this applies to Firefox too, probably others as well.

The points or vertices are created only if the mouse doesn't move at all when clicked. In practice, most people move the mouse just a few pixels all the time. This makes it very difficult to digitize a point, line or a polygon quickly. This makes you to wait to see if clicking the mouse registered, and this is quite annoying.

I tried disabling panning (map.disablePan();) but this didn't help.

Is there any mouse treshold value somewhere that could be increased? What I'm trying to accomplish is to digitize points even if the mouse is moving a few pixels in one direction or the other.

(As a sidenote: an OpenLayers sample http://openlayers.org/dev/examples/draw-feature.html works little better, but has the same issue at least to some extent)

Outcomes