microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Touch text selection issue

Open aquinn39 opened this issue 2 years ago • 0 comments

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

  1. Create an app that uses an XAML Island.
  2. Add a TextBox to the UI in the XAML Island
  3. Attempt to select text in the TextBox with touch and move the second text selection circle

OR

  1. Create a UWP app.
  2. Add a TextBox to an AppWindow and show the AppWindow.
  3. 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.

aquinn39 avatar Jul 25 '22 23:07 aquinn39