There was a question 2 years ago in relation to attaching a handler to a DragHandle's click event. Is it not possible still to attach an event handler to DragHandle's events, specifically when dragend is triggered?
For further clarification, I have 2 capabilities I'd like to implement whilst editing a polygon:
- When a user drags a polygon's handle (position A) near to a corner of another polygon (call this position B) and releases within a pre-determined range, I want the handle and subsequent position it represents to snap to position B.
- When a user drags a polygon's handle (position A) near to an adjacent handle on the same editing polygon, I want the two handles (and consequently the 2 positions of the shape) to be merged into 1 position.
Both capabilities require me to know the final position a user has dragged the handle to, such that I can determine a course of action and modify the target position (for option 1) or modify the shape entirely (for option 2).