What happened?
When running WebView2CompositionControl if a user right-clicks to open a context menu, it will persist if the user clicks and drags the parent window. Stepping through the code WebView2CompositionControl_LocationChanged appears to be fired, but the location changing isn't resulting in the context menu closing as it does in Edge and other browsers.
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
No response
SDK Version
No response
Framework
WPF
Operating System
Windows 11
OS Version
No response
Repro steps
The WebView2WpfCompositionControl project under WebView2Samples demonstrates this issue. Run the app, and once the browser is visible right click anywhere on the screen and then move the browser by clicking and dragging the MainWindow.
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
What happened?
When running WebView2CompositionControl if a user right-clicks to open a context menu, it will persist if the user clicks and drags the parent window. Stepping through the code WebView2CompositionControl_LocationChanged appears to be fired, but the location changing isn't resulting in the context menu closing as it does in Edge and other browsers.
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
No response
SDK Version
No response
Framework
WPF
Operating System
Windows 11
OS Version
No response
Repro steps
The WebView2WpfCompositionControl project under WebView2Samples demonstrates this issue. Run the app, and once the browser is visible right click anywhere on the screen and then move the browser by clicking and dragging the MainWindow.
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