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

Phaser 3 with nipplejs and Cordova not working in ios

我用移相器 Cordova 和 nipplejs 创建了一个游戏,在 Android 中运行良好,但在 ios 中,当我按住操纵杆按钮时,游戏冻结,就像我按住向下翻页刷新。 仅当我单击而不按住时才有效(玩起来不好) 发生这种情况是因为 ios 网络视图?我需要一个解决方法

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

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

(你可以在apple store搜索tio nico adventures试试)

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

Config.xml:

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

index.html css 正文:

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