dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.19k stars 1.75k forks source link

[Android] Span GestureRecognizers don't work when the span is wrapped over two lines. #23801

Open SamuelJames101 opened 3 months ago

SamuelJames101 commented 3 months ago

Description

Create a label with some formatted text. Add a span with text such as a link "https://en.wikipedia.org/wiki/Tottenham_Hotspur_F.C." This link needs to be long enough to wrap. Add a GestureRecognizer to that specific span.

Expected result The whole span is clickable

Actual result The first line is not clickable

Steps to Reproduce

Click/Tap a wrapped span with an attached TapGestureRecognizer. Not the whole string is tappable.

Link to public reproduction project repository

https://github.com/SamuelJames101/MultiLineLinkIssue

Version with bug

8.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 3 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Zhanglirong-Winnie commented 3 months ago

This issue has been verified using Visual Studio 17.11.0 Preview 5.0(8.0.70). Can repro on Android platform.