I created a kiosk app for a touchscreen device. I could disable pinchzoom, but it would be nice to keep it enabled, so the user could zoom into some details.
But if the user just leaves the device in this state, the next user might be confused. So it would be nice, if the zoom would be reset to 100% after a while.
I wrote javascript to detect the pinchzoom and run a timer. But after timeout, all attempts to reset the zoom failed here. I tried the document body zoom factor and the viewport approach. The zoom factor even remains after a document reload.
What might work is a chrome restart or a browser extension. I also thought about using ydo tools to undo the zoom.
Is there a simpler way to do this?
Thanks in advance for any help
I tried to set the document body zoom factor to 1, but the page kept being zoomed in