Skip to content

[Problem/Bug]: In UWP WebView2, on a touchscreen, long-press on link doesn't show context menu, while mouse/touchpad right-click does #5439

@warpedcyberspace

Description

@warpedcyberspace

What happened?

A long-press on touch screen devices on a webpage loaded in WebView2 doesn't show the Context Menu, while right click using mouse or touchpad works fine.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

142.0.3595.53

SDK Version

No response

Framework

WinUI2/UWP

Operating System

Windows 11

OS Version

No response

Repro steps

  1. Open https://google.com in a WebView2 control on a computer with touchscreen available.
  2. Right-click on the About link using mouse/trackpad and notice the context menu opens correctly.
  3. Long-press on touchscreen on the same About link. Nothing shows up. Screen will freeze a bit. Need to move the mouse/trackpad to reset the page to bring it back to life.
  4. Note that long-press on touchscreen on the page without any link/image works fine.

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

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