用cocos2d-js做的游戏在微信浏览器上有些机型双击会放大,这个问题怎么解决,还有在oppo 有些机型上面,touch事件双击屏幕在会响应。
同求答案,点得快一点,老是放大缩小,游戏体验很不好。
标签中添加
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name='apple-touch-fullscreen' content='yes'>
<meta name="full-screen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
复制来的还没知道具体哪一句起作用,反正试了,没有之前那样放大缩小的了。
user-scalable=no
这句在一些机型上可以,但是还有些就不行了