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

iOS 8-9 reports incorrect values from getBoundingClientRect on elements with fixed position while scrolling #59

Open
emilbjorklund opened this issue Sep 27, 2015 · 1 comment

Comments

@emilbjorklund
Copy link

iOS8-9 (so far) report the top value after a getBoundingClientRect() call similar to if the element was positioned absolutely during scroll. Some time after the scroll, the reported value reverts to the correct measurement – albeit tests indicate the value sometimes is 1 pixel off (!). This breaks e.g. fixed-fixed and Kangax's feature detection of fixed positioning

Demo: http://jsbin.com/dugaqa/25/edit?html,css,js,output
Demo of debouncing, to show the value after scroll "settles": http://jsbin.com/dugaqa/21/edit?html,css,js,output

Bug is reported to Apple.

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