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

rAF in Scrollable Area #131

Closed
snewcomer opened this issue Feb 25, 2018 · 0 comments
Closed

rAF in Scrollable Area #131

snewcomer opened this issue Feb 25, 2018 · 0 comments

Comments

@snewcomer
Copy link
Collaborator

Looking at using this addon in Safari, if in a scrollable container, getBoundingClientRect is computed based off of the window. So if the table is set 200px below or at the top of the screen, getBoundingClientRect on the element (sentinel) may not be sufficient.

If using scrollable container, we need to also get the client rect for the scrollable container and determine if in viewport IFF bottom (sentinel) - bottomTolerance (scrollable) <= height (scrollable) + top (scrollable).

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