Skip to content

Commit 2bbe4f2

Browse files
committed
fix: recompute link paths on pan changes to prevent jumping
Pan-x and pan-y changes were not incrementing geometry-version, so link paths were not recomputed during panning. This caused links to jump/snap instead of moving smoothly with their nodes.
1 parent 0794a41 commit 2bbe4f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

node-editor.slint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ export component NodeEditor {
392392
}
393393

394394
// === Trigger updates on viewport changes ===
395-
changed pan-x => { request-grid-update(); viewport-changed(); }
396-
changed pan-y => { request-grid-update(); viewport-changed(); }
395+
changed pan-x => { root.geometry-version += 1; request-grid-update(); viewport-changed(); }
396+
changed pan-y => { root.geometry-version += 1; request-grid-update(); viewport-changed(); }
397397
changed zoom => { root.geometry-version += 1; request-grid-update(); viewport-changed(); }
398398
changed width => { request-grid-update(); }
399399
changed height => { request-grid-update(); }

0 commit comments

Comments
 (0)