[WASM] TextBox text selection behaves differently between WinUI and WASM #16780
Labels
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
platform/wasm 🌐
Categorizes an issue or PR as relevant to the WebAssembly platform
project/text 🔤
Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …)
Current behavior
In the circumstance where the text content of a TextBox is longer than can be displayed in a width constrained TextBox, using the mouse to select the text causes the text content to scroll on Desktop. This does not occur as expected in WASM. This occurs with a simple TextBox and a TextBox surrounded by a ScrollViewer. We are seeing this problem in a DataGrid, but this repro is simpler.
Desktop:
Web:
Expected behavior
The WASM version behaves the same as the WinUI version.
How to reproduce it (as minimally and precisely as possible)
Here's a playground link:
http://playground.platform.uno/#5ed47dfa
Here's the repro:
UnoDatagridTextboxDragToSelect.zip
Workaround
No response
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
WebAssembly
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: