Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[iOS] Finicky tap gesture recognition on Spans #3525

@davidbritch

Description

@davidbritch

Description

I tried out the new gesture recognizer functionality on Spans that's part of 3.2. When adding a TapGestureRecognizer to a Span from C#, while taps are detected on the Span they are really finicky on iOS.

            var span = new Span { Text = "default, " };
            span.GestureRecognizers.Add(new TapGestureRecognizer { Command = new Command(async () => await DisplayAlert("Tapped", "This is a tapped Span.", "OK")) });
            formattedString.Spans.Add(span);

Steps to Reproduce

  1. Run the attached sample. It will launch the LabelPageCode.
  2. Tap the "default" text, in the final Label (this Label comprises three Spans).

Expected Behavior

The TapGestureRecognizer detects the tap and displays an alert, regardless of the exact location where the Span is tapped.

Actual Behavior

The TapGestureRecognizer detects the tap and displays an alert, provided you click on an area above the text. For example, clicking on the black pixels that make up the word doesn't result in the alert being displayed. But clicking just above a letter displays the alert (e.g. click just above the "u").

Basic Information

  • Version with issue: 3.2.0.637442-pre1
  • IDE: VSMac
  • Platform Target Frameworks:
    • iOS: 11.4

Reproduction Link

Text.zip

Metadata

Metadata

Assignees

Labels

blockerIssue blocks next stable release. Prioritize fixing and reviewing this issue.e/3 🕒3p/iOS 🍎t/bug 🐛

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions