dotnet / dotnet/maui

[Windows] CollectionView preventing PanGestures

Open
#31,408 4 comments 3 reactions 0 assignees View on GitHub
area-controls-collectionview area-gestures platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

On Windows when using a PanGestureRecognizer on the parent of a CollectionView the gesture's do not get triggered unless you swipe in the header or footer.

### Steps to Reproduce

1. Create a page with a ContentView add a CollectionView inside the ContentView.
2. Add a PanGestureRecognizer to ContenetView

Expected Result:
PanGesture is triggered when panning the content of the CollectionView

Actual Result:
PanGesture is only triggered in the header or footer of CollectionView

https://github.com/user-attachments/assets/e5fdc1e0-cac6-45ee-9877-6ffeb9d9d041

Currently Working on iOS and Android.

### Link to public reproduction project repository

https://github.com/Cast324/MAUI-CollectionView-Issue-Reproduction

### Version with bug

9.0.30 SR3

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

_No response_

### Affected platforms

Windows

### Affected platform versions

_No response_

### Did you find any workaround?

No

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with the public reproduction project at github.com/Cast324/MAUI-CollectionView-Issue-Reproduction and run it on Windows. Reproduce the PanGestureRecognizer behavior with a CollectionView, compare panning in the content versus its header or footer, and confirm that the gesture triggers across the CollectionView content without breaking the reported iOS and Android behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.