Skip to content

[iOS/Mac/Windows] CollectionView ItemsViewScrolledEventArgs are incorrect when IsGrouped = true #17664

@matmork

Description

@matmork

Description

Basically this from Xamarin.Forms: xamarin/Xamarin.Forms#10389

Copy/Paste:
When a CollectionView's IsGrouped property is set to true, the values of FirstVisibleItemIndex, CenterItemIndex, and LastVisibleItemIndex specified in the ItemsViewScrolledEventArgs passed to the Scrolled event handler are incorrect. They appear to be unable to reflect the indicies of any items beyond the first group.

NET8-Android.mov
NET8-Ios.mov

Steps to Reproduce

  1. Run the iOS app.
  2. Scroll the list.
  3. See Label with text from FirstVisibleItemIndex not updating

Link to public reproduction project repository

https://github.com/Matmork/CollectionViewScroll

Version with bug

8.0.0-rc.1.9171

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions