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:
5
.changeset/nine-games-deny.md
Normal file
5
.changeset/nine-games-deny.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@vue-flow/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Emit node drag-start, drag and drag-end events when a selection is dragged (selectionKeyCode).
|
||||||
@@ -13,12 +13,15 @@ const dragging = useDrag({
|
|||||||
el,
|
el,
|
||||||
onStart(args) {
|
onStart(args) {
|
||||||
emits.selectionDragStart(args)
|
emits.selectionDragStart(args)
|
||||||
|
emits.nodeDragStart(args)
|
||||||
},
|
},
|
||||||
onDrag(args) {
|
onDrag(args) {
|
||||||
emits.selectionDrag(args)
|
emits.selectionDrag(args)
|
||||||
|
emits.nodeDrag(args)
|
||||||
},
|
},
|
||||||
onStop(args) {
|
onStop(args) {
|
||||||
emits.selectionDragStop(args)
|
emits.selectionDragStop(args)
|
||||||
|
emits.nodeDragStop(args)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user