xamarin/Xamarin.Forms

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

オープン

#1,628 opened on 2018/01/21

 (13 件のコメント) (6 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)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 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド