Skip to content

[Problem/Bug]: mouseleave doesn't fire on leaving client anymore #5232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Anutim opened this issue May 6, 2025 · 6 comments
Closed

[Problem/Bug]: mouseleave doesn't fire on leaving client anymore #5232

Anutim opened this issue May 6, 2025 · 6 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore

Comments

@Anutim
Copy link

Anutim commented May 6, 2025

What happened?

Since today (was working fine yesterday), the mouseleave event doesn't fire upon leaving the client area. (e.g. if you're attaching a listener to document.body), to make it work now you'd need to set margin/padding on the body)

It still behaves normally if you're holding down a mouse button pre-mouseleave however.

I have also checked older untouched projects, with their own separate data directory, and it's affected on all of them, so I'm pretty sure it's due to a WebView2 update.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

136.0.3240.50

SDK Version

No response

Framework

Other

Operating System

Windows 11

OS Version

26100.2314

Repro steps

Attach a mouseleave listener to document.body and watch it not get fired upon mouse leaving the window.
(Assuming there's no margin/padding)

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

I don't know, probably any before the mentioned runtime?

@Anutim Anutim added the bug Something isn't working label May 6, 2025
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label May 6, 2025
@dhveerap
Copy link
Contributor

dhveerap commented May 7, 2025

This is a known issue Chromium bug - https://issues.chromium.org/issues/414437602 .

The fix is available in all the versions but Beta and Stable versions with fix are not released yet. Could you kindly test with latest Canary and see if the issue is fixed?

@Anutim
Copy link
Author

Anutim commented May 7, 2025

This is a known issue Chromium bug - https://issues.chromium.org/issues/414437602 .

The fix is available in all the versions but Beta and Stable versions with fix are not released yet. Could you kindly test with latest Canary and see if the issue is fixed?

I'm struggling finding a download for the Canary version of the runtime, can you link it?

@dhveerap
Copy link
Contributor

dhveerap commented May 7, 2025

Download Microsoft Edge Canary from https://www.microsoft.com/en-us/edge/download/insider?cc=1&cs=3896570988&form=MA13FJ

Please follow the steps mentioned here to switch to preview channel - https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/set-preview-channel?tabs=api

@Anutim
Copy link
Author

Anutim commented May 7, 2025

Download Microsoft Edge Canary from https://www.microsoft.com/en-us/edge/download/insider?cc=1&cs=3896570988&form=MA13FJ

Please follow the steps mentioned here to switch to preview channel - https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/set-preview-channel?tabs=api

Alright, sorry. But if there's no direct download to just the runtime I'll just go back to an older working runtime for now.

@jsteinfo
Copy link

jsteinfo commented May 8, 2025

same as tooltip issue?
#5215

@dhveerap
Copy link
Contributor

dhveerap commented May 9, 2025

Fix is available in >=136.0.3240.64 Runtime.

@dhveerap dhveerap closed this as completed May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore
Projects
None yet
Development

No branches or pull requests

4 participants