search

Home  >  Q&A  >  body text

How to completely disable browser gesture zoom functionality on tablets - Stack Overflow

On a tablet, because of the multi-touch function, you can directly use gestures to zoom in and out
But currently I hope to disable this effect, but after trying various methods, it seems to not work
And This zoom is not the same mechanism as the zoom of the CTRL wheel on the PC

The last and most reliable one is a css control: content-zooming:none;

Yes, it worked. Zoom was banned
However, the vulnerability was discovered within a few days...

The first zoom gesture will inevitably fail. Without one finger leaving the screen, swipe with another finger for the second time...you can zoom in again——Is there such an operation?

So I can only come here to ask for help. Is there any other operation that can solve this problem?
Whether it is directly setting the browser properties or modifying the registry... (I have tried some settings that prohibit zooming at high DPI before. However, there are no eggs)

怪我咯怪我咯2753 days ago1120

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-06-30 09:59:23

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />

    Key parameters

    maximum-scale=1.0 //Maximum zoom range

    minimum-scale=1.0 //Minimum

    user-scalable=no //Whether scaling is allowed

    The maximum and minimum are both 1.0, so the html page cannot be scaled

    reply
    0
  • Cancelreply