Is there a non-hacky way to prevent pinch zoom on iOS 11.3 Safari?

后端 未结 3 1492
粉色の甜心
粉色の甜心 2020-12-30 03:18

I really want to disable pinch to zoom on my webpages (iframes) and use finger pinching events for another custom interaction. So while Apple in their documentation

3条回答
  •  悲哀的现实
    2020-12-30 03:47

    From How do you disable viewport zooming on Mobile Safari?

    Try adding the following to your head-tag:

    
    

    additionally

    
    

    Finally, either as a style-attribute or in your css file, add the following text for webkit-based Browsers:

    html {
        -webkit-text-size-adjust: none
    }
    

提交回复
热议问题