question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SwipeGestureRecognizer is not working

See original GitHub issue

Description

SwipeGestureRecognizer is not working on Android, the Swiped event is never raised. I only found this issue #14 which says its in Pending state but the issue hasn’t been updated since 2 years. The documentation for MAUI sounds like it’s implemented.

Is this a bug or is it really not implemented yet?

Steps to Reproduce

<Button>
          <Button.GestureRecognizers>
                    <SwipeGestureRecognizer Direction="Right" Swiped="SwipeGestureRecognizer_Swiped"/>
          </Button.GestureRecognizers>
</Button>

SwipeGestureRecognizer_Swiped event is never raised when I swipe in Android Simulator.

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12, API 31, Android Simulator

Did you find any workaround?

No response

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:28 (16 by maintainers)

github_iconTop GitHub Comments

5reactions
VincentBucommented, Jul 11, 2022

repro with VladislavAntonyuk’s sample.

2reactions
codeaneescommented, Nov 23, 2022

I confirm this issue still exists in .NET MAUI 7. I added swipe gesture to a content view. In Android, the gesture never works!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swipe Gesture Recognizer not working for me
Im trying to add Swipe Gesture Recognizer to my app so I can swipe to either left or right to get to another...
Read more >
UISwipeGestureRecognizer not being called
I have tap gestures that are called without any issues, but for some reason the swipe gestures aren't being recognized. Any help would...
Read more >
Xamarin Forms: SwipeGestureRecognizer is not working ...
The SwipeGestureRecognizer is not working on the android platform and I found a lot of threads related to that. I found an alternative...
Read more >
Xamarin.Forms Swipe Gesture Recognizer
The SwipeGestureRecognizer event is not fired at all. Same code can work on iOS and UWP. Visual Studiowindows 10.0xamlvisual studio 2017 version 15.9....
Read more >
Working with Swipe Gesture Recognizers in Swift
In this post, I show you how to use a swipe gesture recognizer in Swift. We create a simple application ... There is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found