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
Listen to index changes #62
Comments
not pretty sure what the index changes means? may you explain more about it? |
Hi @jerrywell, Sure. So the way this works, whenever we click on an index, the list scrolls down to that index. Which is great. Now, if we scroll down the list manually, I’d like to make an action every time the index changes (from 0 to 1, 1 to 2, etc). But I couldn’t find a way to listen for the index changes, I could only listen to pixel changes. Any thoughts? |
you can listen to the scroll controller's event to get the offset change, meanwhile, just look up the index of the position you specified by following the comment |
Hi @jerrywell, I followed these steps, but unfortunately I couldn't make this work. Please find below an example code of what I need. Would you be able to guide me what I need to do where I have the "???"?
|
Hi @jerrywell,
Is it possible to listen to index changes? That would be really awesome.
I've seen this features in other packages, but then they don't other good features scroll-to-index has.
Thanks.
The text was updated successfully, but these errors were encountered: