This is proving very difficult to research, though if I search an hour or so can probably find the answer. If anyone can beat me to it, I would love to know.
事实证明这很难研究,但如果我搜索一小时左右就可以找到答案。如果有人能打败我,我很想知道。
I'm live coding with jsbin.org, and want to view my output html and drag my fingers around without causing the address bar to move, without having the window zoom.
我正在使用jsbin.org进行实时编码,并希望查看我的输出html并拖动我的手指而不会导致地址栏移动,而无需缩放窗口。
I haven't tried .preventDefault()
or researching CSS but those are possibilities too. Anyone with experience, would love to know how you solve this problem, aside from learning XCode and creating a UIWebView myself.......
我没有尝试.preventDefault()或研究CSS,但这些也是可能的。任何有经验的人都会喜欢知道你如何解决这个问题,除了学习XCode并自己创建一个UIWebView .......
1 个解决方案
#1
0
Hiding the address bar might be impossible, for obvious reasons, and iOS can't requestFullscreen
隐藏地址栏可能是不可能的,原因显而易见,iOS无法请求全屏
Prevent pinch zoom:
防止捏缩放:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
Prevent movable viewport:
防止可移动的视口:
event.preventDefault()
inside a touchstart
callback
touchstart回调中的event.preventDefault()
#1
0
Hiding the address bar might be impossible, for obvious reasons, and iOS can't requestFullscreen
隐藏地址栏可能是不可能的,原因显而易见,iOS无法请求全屏
Prevent pinch zoom:
防止捏缩放:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
Prevent movable viewport:
防止可移动的视口:
event.preventDefault()
inside a touchstart
callback
touchstart回调中的event.preventDefault()