Skip to content
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

MouseEvent.movementX and MouseEvent.movementY are 0 unexpected in Windows App SDK #2220

Closed
kingcean opened this issue Feb 25, 2022 · 2 comments
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@kingcean
Copy link

kingcean commented Feb 25, 2022

Description

In the embedded web page, the MouseEvent.movementX and MouseEvent.movementY are always 0 even if you are moving the mouse. This is not expected.

This WebView2 issue only appears in Windows App SDK app. It works correctly in web browser (Microsoft Edge) and in WPF.

Version

Windows App SDK: 1.0 (built-in WebView2)
Framework: Windows App SDK (packaged)
OS: Windows 10 and Windows 11

Repro Steps

  1. Create a web page and add a mousemove event listener into a DOM. Logs the property values of movementX and movementY of the event arguments.
  2. Create a Windows App SDK project and target to .NET 6.
  3. Add a WebView2 to a page. Navigate the WebView2 to the web page.
  4. Run the app (and turn to the page with WebView2).
  5. Open DevTools.
  6. Move mouse over the DOM for a while, and then check the console of DevTools.

AB#38378087

@kingcean kingcean added the bug Something isn't working label Feb 25, 2022
@champnic
Copy link
Member

champnic commented Mar 3, 2022

Thanks for the bug report @kingcean! I've added it to our backlog, and we'll get the WinUI folks to take a first look.

@champnic champnic added the tracked We are tracking this work internally. label Mar 3, 2022
@champnic
Copy link
Member

@kingcean This should be fixed in runtimes v101.0.1196.0+. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

2 participants