Skip to content

Conversation

@twio142
Copy link
Contributor

@twio142 twio142 commented Oct 16, 2025

Add an option settings.scrollFallback that enables automatic fallback to document-level scrolling when the focused element cannot scroll in the requested direction. Defaults to false to preserve existing behavior.

  • Add canScrollInDirection helper to detect scroll capability
  • Use Map for efficient scroll type to direction mapping
  • Only fallback when setting is enabled and element can't scroll

Useful when, for example, you're browsing a GitHub page with a lot of code blocks that are only horizontally scrollable, while keep scrolling the whole page down.

Add optional scrollFallback setting that enables automatic fallback to
document-level scrolling when the focused element cannot scroll in the
requested direction. Defaults to false to preserve existing behavior.

- Add canScrollInDirection helper to detect scroll capability
- Use Map for efficient scroll type to direction mapping
- Only fallback when setting is enabled and element can't scroll
@twio142 twio142 force-pushed the feat/fallback-scolling branch from 3cbeaf9 to 66169b9 Compare October 16, 2025 13:37
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.

1 participant