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
Owner

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.
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.
eleith added 1 commit 2025-08-19 18:33:24 +00:00
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.
eleith merged commit fa4da22f63 into main 2025-08-19 18:34:55 +00:00
eleith deleted branch gemini/fix/focus-shifting 2025-08-19 18:34:55 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/miniflux-digest#49