Add comment explaining fallback logic in startDrag

Co-authored-by: lavrton <1443320+lavrton@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-05 16:47:11 +00:00
parent 61128a6fd7
commit 6830409e3c

View File

@@ -2600,6 +2600,8 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
{
type: 'dragstart',
target: this,
// Use the stored start event if available (from mousedown/touchstart),
// otherwise fall back to the provided event (when startDrag is called programmatically)
evt: (elem.startEvent && elem.startEvent.evt) || (evt && evt.evt),
},
bubbleEvent