fix(core): emit node drag-start, drag and drag-end events on selection drag (#1913)

* fix(core): emit node drag-start, drag and drag-end events on selection drag

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2025-08-07 15:28:01 +02:00
parent dfae6619e2
commit ed18865525
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Emit node drag-start, drag and drag-end events when a selection is dragged (selectionKeyCode).

View File

@@ -13,12 +13,15 @@ const dragging = useDrag({
el,
onStart(args) {
emits.selectionDragStart(args)
emits.nodeDragStart(args)
},
onDrag(args) {
emits.selectionDrag(args)
emits.nodeDrag(args)
},
onStop(args) {
emits.selectionDragStop(args)
emits.nodeDragStop(args)
},
})