繁体   English   中英

带有 nipplejs 和 Cordova 的 Phaser 3 在 ios 中不起作用

[英]Phaser 3 with nipplejs and Cordova not working in ios

我用移相器 Cordova 和 nipplejs 创建了一个游戏,在 Android 中效果很好,但是在 ios 中,当我按住操纵杆按钮时,游戏冻结,就像我在刷新时一样。 仅当我单击而不按住时才起作用(玩起来不好) 这是因为 ios webview? 我需要一个解决方法

我尝试在 ios 中禁用过度滚动,但是当我拉动 window 时,canvas 仍然冻结。

<preference name="DisallowOverscroll" value="true" />

在此处输入图像描述

(您可以在 Apple Store 中测试搜索 tio nico Adventures)

我用这个解决了这个问题:

配置.xml:

<preference name="DisallowOverscroll" value="true" />

index.html css 在体内:

<body
style="
  pointer-events: auto;
  position: fixed;
  overflow-y: hidden;
  width: 100%;
  height: 100%;
"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM