revert(nodes): add dragging class to node on drag instead of dragstart

This commit is contained in:
braks
2022-10-14 19:45:37 +02:00
committed by Braks
parent 1aaac25e76
commit 9f48095b51

View File

@@ -73,8 +73,6 @@ function useDrag(params: UseDragParams) {
} else {
dragHandler = drag()
.on('start', (event: UseDragEvent) => {
dragging.value = true
if (!selectNodesOnDrag && !multiSelectionActive && id) {
if (!node?.selected) {
removeSelectedElements()
@@ -117,6 +115,7 @@ function useDrag(params: UseDragParams) {
)
updateNodePositions(dragItems, true, true)
dragging.value = true
if (onDrag) {
const [currentNode, nodes] = getEventHandlerParams({