nipplejs
nipplejs copied to clipboard
[BUG] Joystick is unresponsive when using pixi.js and iOS 13
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:
- Attach the joystick to the same document as a pixi application
- Access the app with an iOS 13 updated device
- 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:
- Device: iPhone 8
- OS: iOS 13.1
- Browser: safari, chrome
- Version: nipplejs: 0.8.3, pixi.js : 5.1.5
@abobco I got same situation with Phaser 3. Maybe my pull request fixes this bug.
Same here with a THREE.js based game. EDIT: went back to 0.8.1 to get it working again
Thanks for the detailed report, and thanks for the PR @umeruma ! I've commented on it.
The faulty commit is probably https://github.com/yoannmoinet/nipplejs/commit/9a8a7b4 Going back to 0.8.1 would fix it temporarily, thanks @jmartinezuk !
ios 13.2 can run correctly now.