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

Pinch to zoom works even if zoomcontrol is disabled #459

Closed
pconfig opened this issue Sep 21, 2020 · 6 comments
Closed

Pinch to zoom works even if zoomcontrol is disabled #459

pconfig opened this issue Sep 21, 2020 · 6 comments
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@pconfig
Copy link

pconfig commented Sep 21, 2020

Description
When the zoomcontrol is disabled by setting the 'IsZoomControlEnabled' property to false, zooming with ctrl + scrollwheel is disabled. I'm still able to zoom in using my multitouch touchscreen by pinching. Is there a way to disable this as well?

Version
SDK: 0.9.628-prerelease
Runtime: Edge dev 87.0.637.0
Framework: WPF
OS: Windows 10

AB#29511761

@pconfig pconfig added the bug Something isn't working label Sep 21, 2020
@champnic
Copy link
Member

Ah nice catch! Pinch-to-zoom is a different type of page zooming (for example, in the browser you can pinch to zoom and the page zoom under the '...' menu still says 100%) and our setting isn't catching this scenario. I'll open this as a bug on our end and we'll take a look. Thanks!

@champnic champnic added the tracked We are tracking this work internally. label Sep 21, 2020
@pconfig
Copy link
Author

pconfig commented Sep 21, 2020

You are correct. The zoom percentage does not change in normal edge either.

@animaonline
Copy link

animaonline commented Apr 16, 2021

Any updates on this? Are there any other ways to fix this?

I have tried adding this in my code:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

But it didn't help.

@champnic
Copy link
Member

champnic commented Apr 16, 2021

We're currently working on implementing the API for this. It should be available in an upcoming prerelease SDK package.

@champnic
Copy link
Member

champnic commented Aug 3, 2021

This is available now in the latest SDK package, 1.0.902.49:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2settings.ispinchzoomenabled?view=webview2-dotnet-1.0.902.49

Thanks!

@champnic champnic closed this as completed Aug 3, 2021
@JensMertelmeyer
Copy link

For C++, it's in interface ICoreWebView2Settings5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

4 participants