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: scrolling on elements being ignored #1029

Merged
merged 1 commit into from
Nov 12, 2022
Merged

Fix: scrolling on elements being ignored #1029

merged 1 commit into from
Nov 12, 2022

Conversation

Juice10
Copy link
Contributor

@Juice10 Juice10 commented Oct 17, 2022

In certain cases when scrollLeft is being set, but the value doesn't change. Then scrollTop is also ignored, even if that value was changed.

In this PR we use the scrollTo api as it doesn't suffer from that issue and also supports the option to use smooth scrolling or not.

In certain cases when scrollLeft is being set, but the value doesn't change. Then scrollTop is also ignored, even if that value was changed.
In this case we use the `scrollTo` api as it doesn't have that issue.
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.

3 participants