You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the game loses focus while a key is pressed, that key will continue to be pressed according to Phaser even though the user has lifted their finger. To make matters worse, when the game regains focus, that key will remain to be pressed according to Phaser until it is pressed again.
Lose focus (e.g. by opening the developer console or clicking on a different window)
Regain focus, and DOWN will remain to be pressed until you press it again
Suggested fix:
scene.input.keyboard.createCursorKeys() should not return true for any key if the window is not focused (can be detected using the lose focus callback)
The text was updated successfully, but these errors were encountered:
Thank you for submitting this feature request. We have implemented this and the feature has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
When the game loses focus while a key is pressed, that key will continue to be pressed according to Phaser even though the user has lifted their finger. To make matters worse, when the game regains focus, that key will remain to be pressed according to Phaser until it is pressed again.
Example Test Code
Additional Information
Reproduction steps:
Suggested fix:
The text was updated successfully, but these errors were encountered: