phaser icon indicating copy to clipboard operation
phaser copied to clipboard

ios input stack on disable/enable input

Open ddanushkin opened this issue 2 years ago • 2 comments

Version

  • Phaser Version: 3.55.2
  • Operating system: iOS

Description

Pointer is always down if input was disabled (and then enabled) while pointer is down.

Example Test Code

https://codepen.io/ddanushkin/pen/bGWxyVz

ddanushkin avatar Dec 29 '21 09:12 ddanushkin

Test it using the latest 3.60.0 beta 4 build: https://cdn.jsdelivr.net/gh/natureofcode/phaser@build/3.60.0-beta.4/dist/phaser.js

natureofcode avatar Jan 05 '22 20:01 natureofcode

Test it using the latest 3.60.0 beta 4 build: https://cdn.jsdelivr.net/gh/natureofcode/phaser@build/3.60.0-beta.4/dist/phaser.js

Same, iOS 14.3, iPhone 6s https://codepen.io/d-kozlov/pen/MWEqRON

d-kozlov avatar Jan 10 '22 10:01 d-kozlov

This is such an edge case that I'm happy to leave it working like this. Toggling a boolean like that isn't going to reset the entire input system. As of 3.60 you can now call the new method InputPlugin#resetPointers which you can use to reset all the Pointers in a Scene. So invoke this method if you want to do this enable/disable toggle.

photonstorm avatar Nov 22 '22 00:11 photonstorm