Touch text selection issue
Describe the bug
As shown in the video below, the second little circle that appears that allows you to select text and move the text cursor when a textbox is tapped doesn't work properly in XAML Islands or AppWindows - when grabbing the second circle, it instead grabs the first one. It works fine in a UWP app with WinUI 2.8. Also the same issue is experienced without WinUI 2 as well (So using system XAML).
Steps to reproduce the bug
- Create an app that uses an XAML Island.
- Add a TextBox to the UI in the XAML Island
- Attempt to select text in the TextBox with touch and move the second text selection circle
OR
- Create a UWP app.
- Add a TextBox to an AppWindow and show the AppWindow.
- Attempt to select text in the TextBox with touch and move the second text selection circle.
Expected behavior
When used in a UWP app, so long as it's not in an AppWindow, it works fine:
https://user-images.githubusercontent.com/43898231/180892021-be640348-25e0-4bb2-8b3b-214b4d65afc1.mp4
Screenshots
As can be seen here (Shown in an XAML Island using WInUI 2), grabbing the second circle grabs the first one instead:
Uploading XAML Islands.mp4…
NuGet package version
Microsoft.UI.Xaml 2.8.0
Windows app type
- [ ] UWP
- [ ] Win32
Device form factor
Desktop
Windows version
Windows 11 (21H2): Build 22000
Additional context
This issue doesn't seem to occur in WinUI 3.