Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pink-bees-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---

Use position instead of computedPosition as updated position when moving a child node via keyboard.
4 changes: 2 additions & 2 deletions packages/core/src/composables/useUpdateNodePositions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading