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

后端 未结 3 1494
粉色の甜心
粉色の甜心 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:41

    You can use touch-action: none on the html, body selector: https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action#none

    https://github.com/msand/InfiniDraw/commit/b96aac5f8313f56da7be6f9e9f24648ab02fc444

提交回复
热议问题