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

fix an issue that _currIndex may be set incorrectly #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

orzogc
Copy link

@orzogc orzogc commented Sep 22, 2022

When scrollToIndex() is called to scroll to an item that isn't in viewport, the scrolling may stop at the top or bottom of the list because the target item hasn't been loaded. Then _currIndex will be set to the target index incorrectly. It may cause some notifications about index change to be ignored.
notifyIndexChanged() can set _currIndex to the correct index.

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.

None yet

1 participant