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

State changed event is not triggered on scroll-item #4

Open
dducro opened this issue Jul 6, 2018 · 1 comment
Open

State changed event is not triggered on scroll-item #4

dducro opened this issue Jul 6, 2018 · 1 comment

Comments

@dducro
Copy link

dducro commented Jul 6, 2018

@change="onUpdate"
Is not called on the scroll-item, only on the container.
I ended up not using this feature.

@dducro
Copy link
Author

dducro commented Jul 6, 2018

This may be the reason why isinviewport classes weren't showing.
I used the following to update the component, this also lead to the state classes to appear.
:class="`${scrollState[i] && scrollState[i].isInViewport}`"

(scrollState is a data attribute updated by @change on the scroll-container)

PR #3 might have something to do with it..

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