You would use jsinterop to capture the pinch events, and set the body zoom via css.
https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events/Pinch_zoom_gestures
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am working on a project using .NET MAUI with Blazor Hybrid. I want to enable the zoom feature (pinch-to-zoom and double-tap-to-zoom) for the BlazorWebView when running on an Android device.
Currently, the content in the BlazorWebView is not zoomable. I would like to know if there is a built-in way to enable this or if I need to implement it through custom renderers or platform-specific code.
Any guidance, sample code, or reference to documentation would be greatly appreciated.
Thank you!
You would use jsinterop to capture the pinch events, and set the body zoom via css.
https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events/Pinch_zoom_gestures