Lucas Kivi
04/25/2024, 10:37 PMClickableText
has at times has too small of a touch target for our liking. Sometimes users feel they are clicking an annotated string of text multiple times before the click action is correctly triggered. Obviously, the API was built to use the index of the clicked character, which is prohibitive to some major update to this component. I am wondering if anyone has any cool solutions to this issue? Other than a major design change.ephemient
04/25/2024, 11:35 PMClickableSpan
in TextView
had the same issueephemient
04/25/2024, 11:37 PMephemient
04/25/2024, 11:40 PMeygraber
04/26/2024, 3:15 AMClickableText
is getting deprecated in 1.7ephemient
04/26/2024, 3:18 AMStylianos Gakis
04/26/2024, 7:18 AMephemient
04/26/2024, 7:18 AMephemient
04/26/2024, 7:28 AMonTextLayout
to determine where all the links are and adds a Modifier.pointerInput
which imitates Chrome's fuzzy tap-target search. not in public-shareable state though, and (as I said) it's almost always a better idea to just make the whole text clickable even if only a part of it looks like a linkStylianos Gakis
04/26/2024, 7:45 AMephemient
04/26/2024, 8:21 AMStylianos Gakis
04/26/2024, 8:26 AMLucas Kivi
04/26/2024, 5:35 PMephemient
04/27/2024, 6:57 AM