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

afterScroll fires/triggers multiple times on all pages #336

Open
sambunting opened this issue Aug 11, 2018 · 0 comments
Open

afterScroll fires/triggers multiple times on all pages #336

sambunting opened this issue Aug 11, 2018 · 0 comments

Comments

@sambunting
Copy link

I don't know if this is intentional or not, but for me using animations based off the page the user scrolls to, I see this more of an issue.

This only happens once. It doesn't occur twice. I can't seem to state why or when it happens either.

A way around this that I've found curtsey of this Stack Overflow post

if ($(".onepage-wrapper section:nth-child(1)").hasClass('active')) {
    ...
}

It still triggers several times, but this would only fire the methods/properties/actions relating to a specific page.

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