2

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

3
  • At the end you may have to develop something yourself, but first you could ask this at superuser.com as there may exist a solution already. Commented Aug 31 at 22:10
  • This question is similar to: Changing the browser zoom level. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented Aug 31 at 22:11
  • Please provide enough code so others can better understand or reproduce the problem. Commented Sep 1 at 0:08

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.