Skip to content

CollectionView on Android Consumes Gestures #25758

Open

Description

Description

The setup is a CollectionView inside a grid. The grid has gesture recognizers defined, the CollectionView does not.

Tapping on the page triggers the tap gesture recognizer unless you tap within the CollectionView in which case the tap is ignored on Android and Windows.

Steps to Reproduce

Clone the repository, build and run the app. You should see:

Image

Tap on the page and the tap will be reported unless you tap within the CollectionView.

Link to public reproduction project repository

https://github.com/david-maw/SimpleCollectionView-missing-gestures.git

Version with bug

9.0.0-rc.2.24503.2

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows, Android, I was not able test on other platforms

Affected platform versions

Windows 11, Android 14

Did you find any workaround?

Sort of....

You can attach a GestureRecognizer to the CollectionView but doing so will inhibit native CollectionView scrolling on Android so you then must implement your own scrolling logic (there is an example in the test case, just commented out). If it were not for the fact that the GestureRecognizer inhibits scrolling on Android (see #10213), I'd have just assumed this was a feature.

Relevant log output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions