fix(scrolling): prevent unwanted autofocus on scroll #46

Merged
eleith merged 1 commits from gemini/fix/autofocus-scroll-up into main 2025-08-19 04:54:24 +00:00
1 Commits
Author SHA1 Message Date
eleith 21c8c4d77c fix(scrolling): prevent unwanted autofocus on scroll
This commit refines the autofocus logic to prevent unwanted jumps
when scrolling, especially after a user interaction.

The changes include:
- Removing the delayed autofocus from the IntersectionObserver
  callback to prevent conflicts with user interactions.
- Ensuring that autofocus only moves forward in the list of entries,
  preventing backward jumps.
- Prioritizing user-initiated focus, so that if an entry is already
  active and visible, the autofocus logic does not interfere.
2025-08-19 04:53:20 +00:00