pinchZoomEnabled property
Pinch-zoom, referred to as "Page Scale" zoom, is performed as a post-rendering step, it changes the page scale factor property and scales the surface the web page is rendered onto when user performs a pinch zooming action.
It does not change the layout but rather changes the viewport and clips the web content, the content outside of the viewport isn't visible onscreen and users can't reach this content using mouse.
The pinchZoomEnabled property enables or disables the ability of the end user
to use a pinching motion on touch input enabled devices to scale the web content in the WebView2.
When set to false, the end user cannot pinch zoom after the next navigation.
Disabling/Enabling pinchZoomEnabled only affects the end user's ability to
use pinch motions and does not change the page scale factor.
This API only affects the Page Scale zoom and has no effect on the existing
browser zoom properties or other end user mechanisms for zooming.
The default value is true.
Officially Supported Platforms/Implementations:
- Windows WebView2 1.0.902.49+ (Official API - ICoreWebView2Settings5.put_IsPinchZoomEnabled)
Implementation
bool? pinchZoomEnabled;