Skip to content

Prevent overlapping mouse down events #80

Closed

Description

@eddydg

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions