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:
v1.6.5
I would expect only one of the events to be triggered: the one corresponding to the cursor style.
move -> center handler mouse down event
ns-resize , ew-resize -> radius handler mouse down event
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:v1.6.5![pre](https://user-images.githubusercontent.com/1895157/45221831-fa6a6680-b2b2-11e8-8ce4-e0cf84952cbc.gif)
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 eventbugfix/overlapping-events![post](https://user-images.githubusercontent.com/1895157/45222402-c4c67d00-b2b4-11e8-84b6-7a1689840d0a.gif)
Pull request: https://github.com/smithmicro/mapbox-gl-circle/pull/79