xamarin/Xamarin.Forms

[Android] TapGestureRecognizer do not fire the tapped event on "normal" tap/click.

Open

#1,628 opened on Jan 21, 2018

View on GitHub
 (13 comments) (6 reactions) (0 assignees)C# (1,926 forks)batch import
a/gestures 🖖e/3 :clock3:help wantedm/high impact :black_large_square:p/Androidproposal-acceptedt/enhancement ➕up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Bug report best practices: https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues

Description

On Android the TapGestureRecognizer do not fire the tapped event on "normal" tap/click. The finger is always sliding a little over the screen when you are tapping it, the TapGestureRecognizer have a very small "sliding"-tolerance. This makes the TapGestureRecognizer to only fire a tapped event if you click much more carefully than on a normal button.

Steps to Reproduce

  1. Device: Samsung SM-T580 (Galaxy Tab A)
  2. OS: Android 7.0
  3. Enable developer options: Show Touches and Show Pointer location.

Create any basic Xamarin.Forms project and apply a TapGestureRecognizer to any basic element (Text, StackLayout etc.)

Expected Behavior

The tapped event should be fired even if a little sliding occurs, just like normal buttons do.

Actual Behavior

No event is fired when a little sliding occurs, like it does on buttons.

Basic Information

  • Version with issue: Xamarin.Forms 2.5.0.122203
  • Platform Target Frameworks:
    • Android: 7.0
  • Android Support Library Version: Xamarin.Android.Support.v4 (26.1.0.1), Xamarin.Android.Support.v7.AppCompat (26.1.0.1)
  • Affected Devices: Samsung SM-T580 (Galaxy Tab A)

Screenshots

Reproduction Link

Contributor guide