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

prevent scrollPos to contain decimal #12

Closed
wants to merge 1 commit into from
Closed

Conversation

henrysha
Copy link
Contributor

Issue

Haven't opened a separate issue.

Details

scrollPos sometimes return number with .5 decimal.
This causes isReachEnd to always return false even though scroll has reached the end position, since {element}.scrollWidth - {element}.scrollLeft returns offsetWidth + 0.5.

@henrysha
Copy link
Contributor Author

Closing PR since it seems the issue was happening elsewhere.

@henrysha henrysha closed this May 24, 2022
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