Prevent overlapping mouse down events
eddydg opened this issue · 0 comments
eddydg commented
Currently, when the circle is small enough, radius and center edit handlers will overlap.
Dragging one of those handlers will trigger both events _onCenterHandleMouseDown
and _onRadiusHandlesMouseDown
which provoke weird behaviours after mouseup/mouseout: the circle sticks to the cursor and you have to refresh the page to reset it:
I would expect only one of the events to be triggered: the one corresponding to the cursor style.
move
-> center handler mouse down eventns-resize
,ew-resize
-> radius handler mouse down event
Pull request: #79