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

WebView2 right click menu does not follow cursor after moving window #9688

Open
HO-COOH opened this issue Jun 2, 2024 · 2 comments
Open
Labels
area-WebView bug Something isn't working team-Controls Issue for the Controls team

Comments

@HO-COOH
Copy link

HO-COOH commented Jun 2, 2024

Describe the bug

As title suggest.

Steps to reproduce the bug

  1. Opens winui3 gallery to webview2 page
  2. Right click in the webview2
  3. Move the gallery window, right click again, now the menu appears at a wrong position.

Expected behavior

Menu should opens at pointer position.

Screenshots

2024-06-03.00-22-15.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.5.3: 1.5.240428000

Windows version

Windows 10 (1809): Build 17763

Additional context

No response

@HO-COOH HO-COOH added the bug Something isn't working label Jun 2, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jun 2, 2024
Copy link

github-actions bot commented Jun 2, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@codendone codendone added area-WebView team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jun 7, 2024
@codendone
Copy link
Contributor

Note: The biggest issue here is that the menu no longer opens at the right position after moving the window. The WebView2 code attempts to update the position, but that only happens currently if XAML renders (because WebView2 is using CompositionTarget.Rendered event to check for changes). We may need to update the position on more events, or see if there is an API available yet to catch when the window position changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WebView bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants