How to completely disable browser gesture zoom functionality on tablets - Stack Overflow
怪我咯
怪我咯 2017-06-30 09:57:23
0
1
1097

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)

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
过去多啦不再A梦
<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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template