-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] CollectionView.Scrolled event offset isn't correctly reset when items change #7993
Comments
I knew this was going to come up at some point. :) See #8018. |
Forms 4.7, collectionView gets correct VerticalOffset in OnScrolled event received, after i once refresh the collectionView being inside RefresfView it visually resets ok to zero, but the VerticalOffset in OnScrolled event received is not correct anymore, the minumum it gets is around 6-9. |
Forms 4.8, this issue is still the case on Android. ScrollTo() and changing the ItemSource cause incorrect offsets. Both for HorizontalOffset and VerticalOffset. |
And I can confirm on XF 5.0.0.1874 (Android) this is still an issue! |
@PureWeen I can confirm the issue with wrong scroll offset still happening when adding and then removing the same items, do you suggest reopen this or create another issue ? |
I think it is related to #10966 |
Description
When changing the contents of the
CollectionView.ItemsSource
while scrolled down into the list, theItemsViewScrolledEventArgs.VerticalOffset
is correctly updated.Steps to Reproduce
Expected Behavior
The value of VerticalOffset should be reset, when pressing Empty, to reflect that the view is no longer scrolled - or at least, as is the case on iOS, the value should be reset the next time scrolling is performed. I'd prefer the former.
Actual Behavior
The value of VerticalOffset on Android keeps incrementing and never returns to 0. On iOS it returns to zero the next time scrolling is performed.
Basic Information
Screenshots
Reproduction Link
App6.zip
The text was updated successfully, but these errors were encountered: