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 wrong page direction when current paging item is out of view #567

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

rechsteiner
Copy link
Owner

No description provided.

When getting the direction for a selected cell, we check if the
current cell is in our visibleItems cache. This shouldn't be needed
and causes the wrong direction when the selected item is out of view.
Since we are mixing two PagingItem types we need to implement a custom
isBefore method to ensure we get the correct direction.
@rechsteiner rechsteiner merged commit 1963ce3 into master Apr 7, 2021
@rechsteiner rechsteiner deleted the fix-page-animation branch April 7, 2021 20:45
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