From a901a8ab314eb10e5293fbfd491fc902ed7f2696 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 20 Nov 2025 16:18:34 +0100 Subject: [PATCH 1/2] fix(core): use position instead of computedPos as keyboard move pos Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/composables/useUpdateNodePositions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/composables/useUpdateNodePositions.ts b/packages/core/src/composables/useUpdateNodePositions.ts index 23e3416f0..c65206500 100644 --- a/packages/core/src/composables/useUpdateNodePositions.ts +++ b/packages/core/src/composables/useUpdateNodePositions.ts @@ -26,7 +26,7 @@ export function useUpdateNodePositions() { if (node.draggable || (nodesDraggable && typeof node.draggable === 'undefined')) { const nextPosition = { x: node.computedPosition.x + positionDiffX, y: node.computedPosition.y + positionDiffY } - const { computedPosition } = calcNextPosition( + const { position } = calcNextPosition( node, nextPosition, emits.error, @@ -36,7 +36,7 @@ export function useUpdateNodePositions() { nodeUpdates.push({ id: node.id, - position: computedPosition, + position, from: node.position, distance: { x: positionDiff.x, y: positionDiff.y }, dimensions: node.dimensions, From 8bcf428c5bc33d0cf40f709a96b106f0b2aeee8a Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 20 Nov 2025 16:18:56 +0100 Subject: [PATCH 2/2] chore(changeset): add --- .changeset/pink-bees-lick.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/pink-bees-lick.md diff --git a/.changeset/pink-bees-lick.md b/.changeset/pink-bees-lick.md new file mode 100644 index 000000000..bc4cefd62 --- /dev/null +++ b/.changeset/pink-bees-lick.md @@ -0,0 +1,5 @@ +--- +"@vue-flow/core": patch +--- + +Use position instead of computedPosition as updated position when moving a child node via keyboard.