Hi I’m developing app with ionic4 but wondering if there’s any chance that ionic app also can be pinched zoom in - out just like chrome web browser on mobile devices…
I thought ionic is webview based hybrid app, so it basically implemented but it’s not work as I expected.
how can I pinch zoom in out ionic app’s page?
ichanged index.html like below <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=10.0, user-scalable=yes">
but it’s not working on real device
I could not get it to work either but I am using https://ionicframework.com/docs/native/photo-viewer now.
Instead of pinching I am binding the photo-viewer to a click event and do the pinching in the opened photo-viewer afterwards.
Hello everyone.
Did anyone solve this? I am facing the same issue: build a web app (so simple “ionic build”), to be opened on desktop and mobile, but I would like to allow mobile web users to zoom the whole page using pinch (like most regular websites).
The meta tag user-scalable=yes is being ignored and I don’t get why…
You can set up your properties through a variable:
zoomProperties = {
"double-tap": true, // double tap to zoom in and out.
"overflow": "hidden",// Am not sure. But Documentation says, it will not render elements outside the container.
"wheel": false, // Disables mouse - To enable scrolling. Else mouse scrolling will be used to zoom in and out on web.
"disableZoomControl": "disable", // stops showing zoom + and zoom - images.
"backgroundColor": "rgba(0,0,0,0)" // Makes the pinch zoom container color to transparent. So that ionic themes can be applied without issues.
}
Don’t forget to import modules for the package into your project.
Any solution for zooming html element , using hammerjs to increase font based on pinch event. Doesn’t give proper graphics. Also {zoom:1.5} giving proper zoom , but not sure about limitation