Skip to content

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

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

Open
warpedcyberspace opened this issue Mar 26, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@warpedcyberspace
Copy link

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

@warpedcyberspace warpedcyberspace added the bug Something isn't working label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants