microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.84k stars 320 forks source link

WebView2 blocks mouse input to the application after typing too fast #3266

Closed ghord closed 1 year ago

ghord commented 1 year ago

Describe the bug

WebView2 freezes mouse input when typing too fast.

Steps to reproduce the bug

  1. Create new application with WebView2 control
  2. Set source to any page with input (google/bing)
  3. Type in input very fast
  4. Mouse input to whole app freezes (notice unchanging cursors). Only keyboard input continues to work.

Expected behavior

WebView2 continues to work normally

Screenshots

Animation

NuGet package version

Windows App SDK 1.2.1: 1.2.221116.1

Packaging type

Unpackaged

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

This does reproduce on both packaged and unpackaged apps.

This does not reproduce on versions 1.1.x.

This issue occurs in every 1.2.x version I've tried.

lvendramini commented 1 year ago

Fixed and available in 1.2.5: https://www.nuget.org/packages/Microsoft.WindowsAppSDK/1.2.230313.1 Will be available in 1.3.0 when it ships as well.

We tried this but the maui window could not be closed in the header X or maximize the window.

Xyncgas commented 1 year ago

If I create a new MAUI.Blazor project, does this problem still exist

lvendramini commented 1 year ago

If I create a new MAUI.Blazor project, does this problem still exist yes

Eilon commented 1 year ago

See this comment for how to get the fix in a .NET MAUI Blazor project: https://github.com/MicrosoftEdge/WebView2Feedback/issues/3003#issuecomment-1499349079

Xyncgas commented 1 year ago

is this included inside 1.3.230502000