Skip to content

Comments

fix: Fix viewport jumping when navigating in session list after marking fo…#197

Open
ariane-emory wants to merge 7 commits intodevfrom
fix/session-list-viewport-jumping
Open

fix: Fix viewport jumping when navigating in session list after marking fo…#197
ariane-emory wants to merge 7 commits intodevfrom
fix/session-list-viewport-jumping

Conversation

@ariane-emory
Copy link
Owner

What does this PR do?

Fix viewport jumping when navigating in session list after marking for deletion

The scroll calculation in moveTo() was happening synchronously before
the re-render from setToDelete(undefined) completed its layout pass.
Wrapping the scroll logic in setTimeout ensures positions are updated.

Fixes #173

How did you verify your code works?

Manual A/B testing, bun typecheck, bun test.

@ariane-emory ariane-emory changed the title Fix viewport jumping when navigating in session list after marking fo… fix: Fix viewport jumping when navigating in session list after marking fo… Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unpredictable selection/viewport movement when the current item in the session_list is marked for deletion.

1 participant