AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
24.35k stars 2.1k forks source link

Visibility of Text selection handles on empty TextBoxes on Android #15694

Open mosabnasri opened 1 month ago

mosabnasri commented 1 month ago

Describe the bug

Text selection handles appears as soon as the user clicks on the TextBox even when the TextBox is empty

image

To Reproduce

This happens for any Basic TextBox when you run your Avalonia (11.1.0-beta2) app on Android

Expected behavior

Text selection handles shouldn't appear when the user clicks on an empty TextBox

Avalonia version

11.1.0-beta2

OS

Android

Additional context

No response

robloo commented 4 weeks ago

In some android OSes (Samsung in my case) I see this same behavior. If it doesn't happen on first click into an empty TextBox it definitely happens on the second click.

I don't think this is really a bug and gives the user some useful visual feedback.