WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: Mouse cursor stays invisible if it was invisible when the WebView is closed

Open manuel-p-beko opened this issue 3 months ago • 34 comments

What happened?

The update to runtime version 152 added a new feature to the WebView2. The Windows setting "Hide pointer while typing" is now supported. This is fine by itself, but there is a big problem: If the window that contains the WebView2 control is closed while the mouse cursor is invisible, then the cursor will stay invisible for the whole application. Moving the mouse outside the application window shows the cursor, moving it inside hides it. The application is still fully functional, but it has an invisible cursor. But it looks like this only happens if at least one other WebView2 control is active. If it was the only WebView2 control in the process, then the bug does not happen.

Edge 152 also added this "hide pointer" feature, but I can't reproduce the bug in Edge.

Here is a similar error report that I found: https://borncity.com/win/2026/09/02/edge-webview2-runtime-build-152-0-4191-53-no-mouse-pointer-in-the-veeam-br-console-or-care-center/ That doesn't specify that they close a windows while the cursor is invisible, so maybe there are more cases for when this bug happens. I can confirm that the workaround mentioned there (forcing runtime version 151) also fixes the bug for me (because the cursor is never hidden while typing with runtim 151).

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

152.0.4191.53

SDK Version

1.0.4129.50 and 1.0.4191.47

Framework

WPF

Operating System

Windows 11

OS Version

26200.9106

Repro steps

  1. Open an application that shows a WebView2 control.
  2. Open a separate window in the application that also contains a WebView2 control.
  3. Type something in the WebView2 control so that the cursor is hidden.
  4. Close the window without moving the mouse - e.g. with Alt+F4. Important: Make sure that the mouse cursor stays outside the area of the WebView2 control from step 1. Entering that area will show it again.
  5. Notice that the mouse cursor stays hidden in the whole application area.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

Runtime 151.0.4129.107

manuel-p-beko avatar Sep 02 '26 08:09 manuel-p-beko

https://github.com/user-attachments/assets/7e8800cc-f549-4234-bb46-6e0dd0b956d7

I can't repro it. Do you have a repro which you can share?

chetanpandey1266 avatar Sep 02 '26 09:09 chetanpandey1266

I missed one point in my initial report: The mouse cursor is shown again when it enters the area of a WebView2 control. So you need to make sure that the WebView2 control in the background is not the full windows size, and is not below the area where the mouse cursor was last. I've added this in the initial description repro steps.

Could you please try it again with this information? I can provide a sample if it still doesn't reproduce for you with that additional information.

manuel-p-beko avatar Sep 02 '26 09:09 manuel-p-beko

yeah I'm able to repro now.

chetanpandey1266 avatar Sep 02 '26 10:09 chetanpandey1266

Also running into this today in my product

andr8928 avatar Sep 03 '26 10:09 andr8928

We are seeing the same behavior in a WPF application with WebView2 Runtime 152.0.4191.53, reported by both internal teams and enterprise customers since 9/2/2026. Customer impact is significant, and we'd appreciate an update on investigation status and ETA for a fix.

TestMV123 avatar Sep 03 '26 20:09 TestMV123

We've had dozens of frustrated and confused users because of this issue. We open a window with webview2 for initial sign-in to our desktop app. This version must have just started rolling out to users because we started getting reports 2 days ago. We only just now started to suspect WebView2 was the source of it.

bzuillsmith avatar Sep 04 '26 01:09 bzuillsmith

We are working on this, will update once we have a fix. Thank you for your patience.

navneetrathi-msft avatar Sep 04 '26 03:09 navneetrathi-msft

We're also hit by this hard at Devolutions in Remote Desktop Manager, we've already got over 20 customer cases related to this. Support has been chasing all kinds of red herrings before finding the latest WebView2 update is probably the cause. Please fix quickly, and in the meantime, I'm looking for quick workarounds, we need something to tell our customers.

mamoreau-devolutions avatar Sep 04 '26 13:09 mamoreau-devolutions

We're also hit by this hard at Devolutions in Remote Desktop Manager, we've already got over 20 customer cases related to this. Support has been chasing all kinds of red herrings before finding the latest WebView2 update is probably the cause. Please fix quickly, and in the meantime, I'm looking for quick workarounds, we need something to tell our customers.

One workaround is to disable "Hide pointer while typing" in Windows mouse settings. Bluetooth & Devices -> Mouse -> Additional mouse settings -> Pointer Options

But it would be your clients that need to do it. That will of course disable hiding the mouse in other situations on the OS though.

andr8928 avatar Sep 04 '26 14:09 andr8928

updates on fix expectation would be appreciated. (even if it was something like the rollout of 152 had been stopped)

tedphillips avatar Sep 11 '26 12:09 tedphillips

We are working on this, will update once we have a fix. Thank you for your patience.

Any news/ETA on a fix for this?

hefjo avatar Sep 15 '26 10:09 hefjo

The fix is available in 155. Thanks.

navneetrathi-msft avatar Sep 16 '26 10:09 navneetrathi-msft

@navneetrathi-msft Thanks. If I see this correctly then version 155 will be released on October 9th. Can you confirm that date?

manuel-p-beko avatar Sep 16 '26 10:09 manuel-p-beko

navneetrathi-msft Thanks. If I see this correctly then version 155 will be released on October 9th. Can you confirm that date?

I have the same question, does the fix follow this release schedule? If so, I see 155 released October the 8th. ref: https://learn.microsoft.com/en-us/deployedge/microsoft-edge-release-schedule#microsoft-edge-releases

hefjo avatar Sep 16 '26 10:09 hefjo

Yes, 8th October 2026 is the expected stable release date.

navneetrathi-msft avatar Sep 16 '26 10:09 navneetrathi-msft

@navneetrathi-msft I can’t find any mention of the mouse cursor issue in the release notes for version 155. Was it fixed with version 155?

dschultepb avatar Oct 09 '26 06:10 dschultepb

Our tests conclude its not fixed. We have an application where the mouse pointer vanishes, and it sometime returns by clicking around blind in the UI.

Was discovered in 152 for us, and still not fixed in 155.

dofus-ai avatar Oct 09 '26 08:10 dofus-ai

@dofus-ai can you please confirm the WV2 version on which you tested?

navneetrathi-msft avatar Oct 09 '26 10:10 navneetrathi-msft

I checked one of my machines and Edge is on version 155, but the files at C:\Program Files (x86)\Microsoft\EdgeWebView\Application for working with .NET still show only the 154 folder. When are these files supposed to be updated? The issue cannot be resolved until they updated.

bzuillsmith avatar Oct 11 '26 03:10 bzuillsmith

You should be getting the update in a day or two. Updates are rolling out to everyone.

navneetrathi-msft avatar Oct 12 '26 04:10 navneetrathi-msft