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

Remove delay / improve smoothness of scroll-to-top transition #5243 #5261

Closed
wants to merge 4 commits into from

Conversation

Ashparshp
Copy link
Contributor

@Ashparshp Ashparshp commented Jan 2, 2024

Description
I changed the constant value from 16 to 8 in the formula const translateY = scrollPosition / 8;. This modification seems to have significantly improved the smoothness and reduced lag.

This PR fixes #
Remove delay / improve smoothness of scroll-to-top transition #5243

Notes for Reviewers
Video.webm

Signed commits

  • Yes, I signed my commits.

@Ashparshp Ashparshp changed the title Ashparsh issue1 Remove delay / improve smoothness of scroll-to-top transition #5243 Jan 2, 2024
@Ashparshp Ashparshp closed this Jan 3, 2024
@Ashparshp Ashparshp deleted the ashparsh-issue1 branch January 3, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant