smithmicro/mapbox-gl-circle

Prevent overlapping mouse down events

eddydg opened this issue · 0 comments

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

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

bugfix/overlapping-events
post

Pull request: #79