Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multitasking on iOS breaks input #663

Open
Robominister opened this issue Apr 2, 2020 · 4 comments
Open

Multitasking on iOS breaks input #663

Robominister opened this issue Apr 2, 2020 · 4 comments

Comments

@Robominister
Copy link

Robominister commented Apr 2, 2020

  • Phaser version(s):
    2.15.0 CE

  • What steps produce the bug:
    Run any phaser setup using the latest CE version (2.15.0) on an ios device (i can confirm this from an iPhone X running ios 13), and use the "swipe to return home" gesture.

  • What should happen:
    You should still have touch input within the phaser game

  • What happens instead:
    Whether you fully swipe the browser away (and return to it) or partially swipe it away (so you don't actually return home, the browser comes back), we lose all input within the phaser game (we don't lose input events in the browser in general of course - i can confirm this, as other html elements are still interactive)

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

@samme
Copy link
Collaborator

samme commented Apr 2, 2020

Could you try

game.input.mspointer.stopOnGameOut = true;

?

@Robominister
Copy link
Author

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
Copy link
Collaborator

samme commented Apr 2, 2020

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

@samme
Copy link
Collaborator

samme commented May 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants