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

scrollWidth and scrollHeight are Ints not Numbers #55

Open
seastian opened this issue May 2, 2023 · 0 comments
Open

scrollWidth and scrollHeight are Ints not Numbers #55

seastian opened this issue May 2, 2023 · 0 comments

Comments

@seastian
Copy link

seastian commented May 2, 2023

https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth

Note: This property will round the value to an integer. If you need a fractional value, use [element.getBoundingClientRect()](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).

Not sure if worth a breaking change but I just ran into it when comparing it with width.

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

No branches or pull requests

1 participant