MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: Pinch zoom behavior not consistent between touchpad and touchscreen for WebView2 in UWP

Open
#5,179 2 comments 0 reactions 1 assignee View on GitHub

@Badhri is already working on this.

Since Mar 27, 2025.

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

Description

What happened?

In the Edge browser, using the pinch-zoom action on the touchpad or directly on the touchscreen changes the page scale factor - so it is consistent behavior.

In UWP WebView2 application, using the pinch-zoom action on the touchpad changes the page layout like using CTRL+ or -, while the pinch zoom action on the touchscreen changes the page scale factor.

Request: It would be nice to have the same behavior as Edge and change the page scale factor even when using pinch zoom on the touchpad for webview2.

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

WinUI2/UWP

Operating System

Windows 11

OS Version

No response

Repro steps
  1. Open a webpage https://bing.com in WebView2 control
  2. Try pinch zoom on the touchscreen
  3. Try pinch zoom on the trackpad
    Note that the two behaviors are different.
    Now try the same actions in the edge browser and note that the two behaviors are exactly the same.
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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.