yoannmoinet / nipplejs

:video_game: A virtual joystick for touch capable interfaces.
https://yoannmoinet.github.io/nipplejs
MIT License
1.76k stars 181 forks source link

[BUG] Joystick is unresponsive when using pixi.js and iOS 13 #122

Open abobco opened 4 years ago

abobco commented 4 years ago

Describe the bug Joystick is unresponsive when using pixi.js and iOS 13. The only events that seem to fire are 'start', 'end', 'added', and 'removed'.

To Reproduce Steps to reproduce the behavior:

  1. Attach the joystick to the same document as a pixi application
  2. Access the app with an iOS 13 updated device
  3. Try to move the joystick

Expected behavior Joystick should move and trigger directional events, as it does on android and previous versions of iOS.

Screenshots, Codepen or JSFiddle https://codepen.io/abobco/pen/RwbOzrv

Smartphone:

umeruma commented 4 years ago

@abobco I got same situation with Phaser 3. Maybe my pull request fixes this bug.

jmartinezuk commented 4 years ago

Same here with a THREE.js based game. EDIT: went back to 0.8.1 to get it working again

yoannmoinet commented 4 years ago

Thanks for the detailed report, and thanks for the PR @umeruma ! I've commented on it.

yoannmoinet commented 4 years ago

The faulty commit is probably https://github.com/yoannmoinet/nipplejs/commit/9a8a7b4 Going back to 0.8.1 would fix it temporarily, thanks @jmartinezuk !

wxchenxueqi commented 4 years ago

ios 13.2 can run correctly now.