Skip to content

Conversation

@revolutionkpi
Copy link

Fix crash when minVisibleIndex was more than totalItemsCount


let percentageDeltaOffset = CGFloat(deltaOffset) / collectionView.bounds.width

// ToDO: fix crash
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove todo please?

Comment on lines +63 to +65
if minVisibleIndex > totalItemsCount {
minVisibleIndex = totalItemsCount
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why minVisibleIndex could be larger than totalItemsCount ? Does this happen when collectionView.contentOffset.x is too large? Could it be that the real root cause is in the different place?

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.

3 participants