Select to view content in your preferred language

Why is the "draw-complete" event on the PointDrawAction so slow?

522
0
06-05-2019 10:58 AM
JackFairfield
Frequent Contributor

I am trying to allow users of my site to add a point using the Draw tool.  When trying to add a point, I have noticed that the "draw-complete" event is firing about 250 milliseconds - second behind the native document event

document.getElementById("viewDiv").onclick

Here is a simple jsbin that shows the delay:

jsbin

Here is a GIF showing the problem that I am seeing.  My clicks are highlighted in yellow.  As you can see, it takes a fair bit of time for the "draw-complete" event to fire.

0 Kudos
0 Replies