Hello!
I have a problem with SketchViewModel.
We are using SketchViewModel for our custom edit tool. (mode='click')
When I draw a polygon quickly, the SketchViewModel doesn't seem to keep up.
I need to wait for the draw line to "reach the mouse cursor", otherwise there will be a pan instead, and no point is drawn.
I have tried to disable pan by calling stopPropagation() on the drag event. But even with no pan the problem still remains. No points will be drawn if I draw to quickly.
You can observe the same behavior in this sample (version 4.25)
https://developers.arcgis.com/javascript/latest/sample-code/sketch-geometries/
In freehand mode the there is no problem, but our users don't want to use frehand mode.
They want every click resulting in exactly one point.
Is this a bug in the SketchViewModel or am I missing some functionality here?
Anyone know how I can solve this?
Thanks
Arne Dahlman
JS-api: 4.24
CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
Browsers:
Edge Version 107.0.1418.62
Chrome Version 107.0.5304.122