fix: prevent focus from shifting away from visible entries #49

Merged
eleith merged 1 commits from gemini/fix/focus-shifting into main 2025-08-19 18:34:55 +00:00
1 Commits
Author SHA1 Message Date
eleith c9ccbce3f7 fix: prevent focus from shifting away from visible entries
The previous auto-focus logic was too aggressive and would shift focus away from large, open entries that were still visible on screen.

This change refines the `IntersectionObserver` logic to:
- Only trigger auto-focus when scrolling down.
- Prevent focus from changing if the currently active entry is still visible in the viewport.
- Only move focus to entries that appear after the previously focused one.
2025-08-19 18:32:56 +00:00