clientIO / joint

A proven SVG-based JavaScript diagramming library powering exceptional UIs
https://jointjs.com
Mozilla Public License 2.0
4.73k stars 853 forks source link

fix(linkTools.Arrowhead): fix to trigger missing paper pointerdown event #2625

Closed kumilingus closed 7 months ago

kumilingus commented 7 months ago

Description

When the user drags the arrowhead of a link (either by dragging the port or using the linkTools.Arrowhead tool), the following events are triggered on paper:

'link:pointerdown' (1)
'link:pointermove' (0+)
 link:pointerup' (1)

However, in the case of linkTools.TargetArrowhead and linkTools.SourceArrowhead the link:pointerdown event was missing.

Note: it applies to cell:pointerdown event too.