Skip to content

[Problem/Bug]: Context Menu Appearing Randomly on Second Monitor. #5679

Description

@dapowe-winos

What happened?

When using the WebView2CompositionControl, ContextMenus are not appearing at the cursor when a second monitor is connected that has a different display size than the main monitor.

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

Run the WebView2WpfCompositionControl demo app on a laptop attached to a monitor with a different zoom. Drag the WebView to the larger monitor and right click to open a ContextMenu. The menu will not appear in the same spot each time.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

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