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

App sometimes cannot resume on Wasm on mobile Chrome #961

Closed
hajimehoshi opened this issue Oct 14, 2019 · 5 comments
Closed

App sometimes cannot resume on Wasm on mobile Chrome #961

hajimehoshi opened this issue Oct 14, 2019 · 5 comments
Milestone

Comments

@hajimehoshi
Copy link
Owner

hajimehoshi commented Oct 14, 2019

wasm_exec.js:327 [Intervention] Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

EDIT: The above warning is shown when the scrolling starts outside of the iframe and ends inside of the iframe, and vice versa.

@hajimehoshi hajimehoshi added this to the v1.10.0 milestone Oct 14, 2019
@hajimehoshi
Copy link
Owner Author

hajimehoshi commented Oct 14, 2019

ebiten.org/examples/animation.html

  1. Open the above page on a mobile browser (e.g., Android Chrome)
  2. Show the side menu
  3. Close the side menu
  4. The game stops

@hajimehoshi
Copy link
Owner Author

I could reproduce this when emulating mobile browsers in a desktop Chrome.

@hajimehoshi hajimehoshi changed the title App sometimes cannot resume on Wasm App sometimes cannot resume on Wasm on mobile Chrome Oct 14, 2019
@hajimehoshi
Copy link
Owner Author

The cause is that focus event might not be called after blur.

@hajimehoshi
Copy link
Owner Author

I found this issue again 🤔

@hajimehoshi hajimehoshi reopened this Oct 20, 2019
@hajimehoshi
Copy link
Owner Author

My observation is that focus/blur and visibilitychange events might not be fired when the mobile device comes back from power off. After switching browser tabs, the app starts again.

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

1 participant