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

Enabled initial event for off-view elements #50

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

andypillip
Copy link

Before off-view elements would only get their event after they got in view once

Before off-view elements would only get their event after they got in view once
@andypillip
Copy link
Author

I just realized that my feature here goes against a test case:

inview shouldn't be triggered initially when the element isn't in the viewport

But I do not find any explanation for this. Why would this even be specified?

One can link to anchors on the page, which will be like scrolling but not trigger the scroll event. So you have no clue which elements are visible initially.

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.

1 participant