-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] CollectionView item selection not triggered when using PointerGestureRecognizer #34491
Copy link
Copy link
Open
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewarea-gesturesGesture typesGesture typesi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.Current heighest priority issues that we are targeting for a release.partner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-10.0.50s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
When a PointerGestureRecognizer is added to the ItemTemplate of a CollectionView, tapping an item on Android does not trigger the SelectionChanged event and the item is not selected.
This occurs because the PointerGestureRecognizer intercepts the pointer input and prevents the CollectionView from processing the selection gesture.
| In 10.0.50 version(issue reproduced) | In 10.0.41 version(issue not reproduced) |
|---|---|
Screen.Recording.2026-03-16.at.3.12.11.PM.mov |
Screen.Recording.2026-03-16.at.3.16.24.PM.mov |
Steps to Reproduce
- Create a new .NET MAUI application. CVIssue.zip
- Add a CollectionView to a page.
- Set the SelectionMode of the CollectionView to Single or Multiple.
- Add an ItemTemplate containing a Grid.
- Inside the Grid, add a PointerGestureRecognizer with PointerEntered and PointerExited events.
- Implement the SelectionChanged event for the CollectionView.
- Run the application on Android.
- Tap any item in the CollectionView.
- Observe whether the item is selected or not.
Expected Behavior: When tapping an item in the CollectionView, the item should be selected and the SelectionChanged event should be triggered.
Actual Behavior: When PointerGestureRecognizer is used inside the ItemTemplate, tapping an item does not select the item and the SelectionChanged event is not triggered.
Link to public reproduction project repository
Version with bug
10.0.50
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
10.0.40
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewarea-gesturesGesture typesGesture typesi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.Current heighest priority issues that we are targeting for a release.partner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-10.0.50s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo