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 floating point scrollLeft bug #55

Merged
merged 2 commits into from
Jul 20, 2023
Merged

Fix floating point scrollLeft bug #55

merged 2 commits into from
Jul 20, 2023

Conversation

robere2
Copy link
Owner

@robere2 robere2 commented Jul 20, 2023

Fix a bug with scrolling not working properly on some browsers where scrollLeft cannot take a floating point value. This works fine in Edge interestingly, but did not work in Chrome or Firefox. Now we instead store the value until it's greater than 1, and then add the integer value on the next available frame.

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-ocean-0dd89fe10-55.centralus.1.azurestaticapps.net

@robere2 robere2 merged commit 58291ea into master Jul 20, 2023
5 checks passed
@robere2 robere2 deleted the scroll_hotfix branch July 20, 2023 17:24
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.

None yet

1 participant