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
Owner

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.
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.
eleith added 1 commit 2025-08-19 04:53:57 +00:00
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.
eleith merged commit 6485d40279 into main 2025-08-19 04:54:24 +00:00
eleith deleted branch gemini/fix/autofocus-scroll-up 2025-08-19 04:54:24 +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#46