MicrosoftEdge / MicrosoftEdge/WebView2Feedback

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

Open
#5,679 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the WebView2WpfCompositionControl demo app with a laptop and a second monitor using a different display zoom. Drag the WebView to the larger monitor and right-click repeatedly; done means the ContextMenu consistently appears at the cursor position under this setup.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.