phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 491 forks source link

Multitasking on iOS breaks input #663

Open Robominister opened 4 years ago

Robominister commented 4 years ago

I have deliberately copied the title of an issue on the Phaser 3 repo: https://github.com/photonstorm/phaser/issues/3756 as it seems to be the same issue (as i understand it), but apparently not resolved on phaser 2 ce.

samme commented 4 years ago

Could you try

game.input.mspointer.stopOnGameOut = true;

?

Robominister commented 4 years ago

I added this call at the beginning of the first state used in the game (as the input handler property o of the phase game instance doesn't seem to exist before the game is fully initialized?) - but that hasn't made a difference.

samme commented 4 years ago

I couldn't reproduce this, but could you try it on https://cdpn.io/samme/debug/gKqgbB and screenshot if possible, thanks.

samme commented 4 years ago

Hi @Robominister could you test this Phaser build: phaser-test.js.gz