我有一个 webgl 游戏在 iPad Safari 上运行良好,我可以使用常用的解决方案禁用系统捏合/缩放操作(例如:禁用视口缩放 iOS 10+ safari?),但在游戏切换到全屏显示document.body.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)
我有touch-action: none;,user-scalable=no在元中,passive: false并且e.preventDefault();对于所有触摸事件(touchstart、touchend、touchmove、touchcancel)
编辑:这是一个包含我尝试过的大多数内容的代码笔: https: //codepen.io/SerialF/pen/BaaRKJN