Skip to content

[Problem/Bug]: WebView2CompositionControl not firing mouseleave and dragover events #5676

Description

@DAST-Synchronics

What happened?

I am using WebView2CompositionControl in a WPF app (.NET 10). If I have an js application inside, which is using mouseleave (pointerleave) or dragover events, it is not working properly (they are not firing). If I use the WebView2 control, everything is working.

You can find the reproducable example in this repo: https://github.com/DAST-Synchronics/WebView2CompositionBug

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.4129.50

SDK Version

151.0.4129.86

Framework

WPF

Operating System

Windows 11

OS Version

10.0.26200

Repro steps

  1. Clone the following repo - https://github.com/DAST-Synchronics/WebView2CompositionBug and start it
  2. You will get two windows, one with WebView2CompositionControl and one with WebView2 and DevTools opened. There is a simple html/js example, in which you can test the functionality. The mouse and drag events are automatically logged. As you can see, in the case of the WebView2CompositionControl the mouseleave and dragover events are not logged, in case of the WebView2, everything works.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions