Xbox UWP app: Pointer mode does not work properly when scaling is set to default (200 %) #9231
Labels
appModel-UWP
Exclusive to WinUI 2 UWP apps
needs-triage
Issue needs to be triaged by the area owners
Describe the bug
The UWP app is configured for the Xbox so that the pointer mode is only enabled when requested (RequiresPointerMode = ApplicationRequiresPointerMode.WhenRequested). The scaling is set to default (200 % for UWP apps). One page was created with a ScrollViewer and one with a WebView2 control. Both controls have the properties "RequiresPointer=WhenEngaged" and "IsFocusEngagementEnabled=True". As soon as the controls receive the focus and the pointer mode is activated (IsFocusEngaged = True), the pointer appears. However, the pointer can only be used in 25 % of the area of the control at the top left. As soon as scaling is disabled (ApplicationViewScaling.TrySetDisableLayoutScaling(true)) and the app is displayed at 100 %, the pointer can be navigated over the entire area of the control.
Steps to reproduce the bug
App.xaml.cs:
MainPage.xaml:
MainPage.xaml.cs:
Navigate to ScrollViewer with Xbox Controller, so that it gets the focus.
Expected behavior
Pointer can be navigated over the entire area of the control by default Xbox UWP scaling (200 %)
Screenshots
No response
NuGet package version
None
Packaging type
No response
Windows version
No response
IDE
No response
Additional context
Operating System:
Xbox
OS Version:
10.0.25398.2538
The text was updated successfully, but these errors were encountered: