You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
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
Run the attached sample. It will launch the LabelPageCode.
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").
Description
I tried out the new gesture recognizer functionality on Spans that's part of 3.2. When adding a
TapGestureRecognizerto aSpanfrom C#, while taps are detected on theSpanthey are really finicky on iOS.Steps to Reproduce
Expected Behavior
The
TapGestureRecognizerdetects the tap and displays an alert, regardless of the exact location where theSpanis tapped.Actual Behavior
The
TapGestureRecognizerdetects 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
Reproduction Link
Text.zip