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

scrollLeft() does not always return an Integer #1198

Open
jd-dean opened this issue Nov 30, 2021 · 0 comments
Open

scrollLeft() does not always return an Integer #1198

jd-dean opened this issue Nov 30, 2021 · 0 comments

Comments

@jd-dean
Copy link

jd-dean commented Nov 30, 2021

Documentation issue: scrollLeft can return a Double in Chrome (tested in Chrome 96) and Edge.

Repro by changing the zoom level and scrolling horizontally.
https://jsfiddle.net/d6u2sjth/4/

MDN says: "Warning: On systems using display scaling, scrollLeft may give you a decimal value"
https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft

See also: #608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant