Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(spotlight, usescrollobserver): automatically scroll nearest scrollable element #484

Merged

Conversation

aVileBroker
Copy link
Contributor

Instead of always trying to scroll the window to highlight the target, it now finds the nearest
scrollable element and scrolls that instead. Many times, that will be the window/html element

fixes #481

…lable element

Instead of always trying to scroll the window to highlight the target, it now finds the nearest
scrollable element and scrolls that instead. Many times, that will be the window/html element

fixes #481
@aVileBroker aVileBroker merged commit 7469d87 into master Oct 24, 2023
1 of 2 checks passed
@aVileBroker aVileBroker deleted the trigger-release-squash-merges-are-bad-for-foundry branch October 24, 2023 19:51
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 74385aa:

Sandbox Source
React Configuration

HeadstormOps pushed a commit that referenced this pull request Oct 24, 2023
…3-10-24)

### Bug Fixes

* **spotlight, usescrollobserver:** automatically scroll nearest scrollable element ([74385aa](74385aa)), closes [#481](#481)
* **spotlight, usescrollobserver:** automatically scroll nearest scrollable element ([#484](#484)) ([7469d87](7469d87)), closes [#481](#481)
@HeadstormOps
Copy link

🎉 This PR is included in version 1.27.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spotlight, useScrollObserver | allow for custom scroll targets
2 participants