Skip to content

[Windows] GUI temporarily stops responding to mouse cursor, after repeatedly right-clicking to open the context menu (MAUI Blazor Hybrid) #28915

Open
@Dyssling

Description

@Dyssling

Description

After enabling default context menus, the GUI will stop responding to the mouse cursor if you repeatedly right-click a couple of times. After moving the cursor outside of the window and back inside, it will start working again.

Steps to Reproduce

  1. Create a new .NET MAUI Blazor Hybrid App.
  2. Set "AreDefaultContextMenusEnabled" to true. This can be achieved by adding the following code to MauiProgram.cs:
Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler.BlazorWebViewMapper.AppendToMapping("MyCustomization", async (handler, view) => {
                await handler.PlatformView.EnsureCoreWebView2Async();
                handler.PlatformView.CoreWebView2.Settings.AreDefaultContextMenusEnabled = true;
});
  1. Repeatedly right-click the same spot in the GUI a couple of times, and notice how the GUI stops responding to all cursor events until you move it outside the window and back.

Link to public reproduction project repository

No response

Version with bug

9.0.14 SR1.4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.19045.5608

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorBlazor Hybrid / Desktop, BlazorWebViewplatform/windows 🪟s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions