I have a case in application where user can drag a point added to the map earlier with lines connected to it (one end of the line has same coordinates as the point). Point and lines are graphics of GraphicLayer. All of the actions are handled by SketchViewModel
Does anyone aware what would be best way to handle the case described? I've tried to on a update event
when
event.state === 'active' &&
event.toolEventInfo.type === 'move'
to get new coordinates of the point user drags and update with it line coordinates of the end that is connected to the point.
It works smooth if user drags slowly. But If dragging is done harshly weird behaviour happens.