Skip to content

Inconsistent behavior when using SwipeGestureRecognizer - iOS vs Android #33375

@kart-c1

Description

@kart-c1

Description

I am working on a mobile app, and I have a XAML element with a Swipe Gesture Recognizer added and listening for right swipes. Nested deep inside of this structure is a CollectionView that scrolls horizontally. When a user scrolls on the CollectionView on an Android device, the Border's gesture is not triggered. On iOS, it is triggered. This is different and undesirable.

Figure A.

            var swipeGesture = new SwipeGestureRecognizer
            {
                Direction = SwipeDirection.Right,
                Threshold = 200
            };
            swipeGesture.SetBinding(SwipeGestureRecognizer.CommandProperty, nameof(MyScreen.NavigateBackCommand)); // Change as needed for replication.  It can be as simple as a function that logs when it is called.
            MyBorder.GestureRecognizers.Add(swipeGesture);

Steps to Reproduce

  1. Create a new MAUI app with a blank page
  2. Add and name a that covers the whole screen
  3. Add Figure A to the code behind
  4. Create and fill a  inside of the Border
  5. Run on iOS and Android
  6. Note that the GestureRecognizer's bound command is triggered by swiping right inside of the collectionview on iOS (bad), but not on Android

Link to public reproduction project repository

No response

Version with bug

10.0.20

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 26 and up

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-gesturesGesture typespartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions