From 4ab69000ff63806dc2cd26bac361ad437b8a2f10 Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 26 Mar 2025 23:59:44 -0700 Subject: [PATCH] fix: recalculate guides to prevent issues with initial drag position --- packages/core/src/commands/view/ComponentDrag.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/commands/view/ComponentDrag.ts b/packages/core/src/commands/view/ComponentDrag.ts index 80beabd65..39420e1d0 100644 --- a/packages/core/src/commands/view/ComponentDrag.ts +++ b/packages/core/src/commands/view/ComponentDrag.ts @@ -389,6 +389,9 @@ export default { position, }); } + + // Recalculate guides to avoid issues with the new position durin the first drag + this.guidesStatic = this.getGuidesStatic(); }, onDrag() {