Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView: Item indices in the Scrolled event args (ItemsViewScrolledEventArgs) are incorrect on iOS when IsGrouped = true #10389

Open
chrisstaley opened this issue Apr 20, 2020 · 5 comments

Comments

@chrisstaley
Copy link

Description

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.

It should be noted that the indices are reported correctly on Android.

Steps to Reproduce

  1. Open the attached solution.
  2. Run the iOS app.
  3. Scroll the list.
  4. Make note of the indices reported in the debug output.

Expected Behavior

The indices of items in groups other than the first group should appear as the list is scrolled.

Actual Behavior

Only the indices of the first group are reported in the event args, even though those items are clearly not the first/center/last items.

Basic Information

  • Version with issue: 4.5.0.617
  • Platform Target Frameworks:
    • iOS: 11.4

Reproduction Link

IssueRepro.zip

@chrisstaley chrisstaley added s/unverified New report that has yet to be verified t/bug 🐛 labels Apr 20, 2020
@pauldipietro pauldipietro added this to New in Triage Apr 20, 2020
@chrisstaley chrisstaley changed the title [Bug] CollectionView: Item indices in the Scrolled event args (ItemsViewScrolledEventArgs) are incorrect when IsGrouped = true [Bug] CollectionView: Item indices in the Scrolled event args (ItemsViewScrolledEventArgs) are incorrect on iOS when IsGrouped = true Apr 20, 2020
@jsuarezruiz jsuarezruiz moved this from New to Needs Estimate in Triage Apr 21, 2020
@jsuarezruiz jsuarezruiz removed the s/unverified New report that has yet to be verified label Apr 21, 2020
@samhouts samhouts added this to Backlog in CollectionView Apr 23, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@hartez
Copy link
Contributor

hartez commented Feb 9, 2021

See also #9989

@hartez hartez moved this from Review Backlog to Backlog in CollectionView Feb 9, 2021
@hartez hartez removed this from Needs Estimate in Triage Feb 9, 2021
@dbSoft-SoftwareSolutions

We are facing the same issue. We are using Xamarin.Forms 5.0.2012. Is there anyone who have found any solution?

@hartez
Copy link
Contributor

hartez commented Feb 18, 2021

See also #13787

@AdrianoBinhara
Copy link

Does anyone have an update or a workaround?

@CleverSoftwarePoland
Copy link

Any news, when, this could be fixed on iOS?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
CollectionView
  
Backlog
Development

No branches or pull requests

7 participants