Example of problem using phaser 3 example code.
- I run example at
https://phaser.io/examples/v3/view/input/keyboard/cursor-keys and it works fine. I press right arrow and box moves and stops when I release key. - I install the example set on my ubuntu 16.04 computer at https://github.com/photonstorm/phaser3-examples
- I unzip, do npm install and npm start - all is fine
- I go to my localhost page and see the example set and I go to the same keyboard/cursor-keys example and run it.
- I get the same box and all looks good. I hit right arrow and box moves BUT it does not stop when I release. I can hit left arrow and it does same and box hits left wall. Right arrow now does nothing. Box has green line on it as if it thinks the arrow is still depressed.
- If I click my mouse outside of the browser window the green line disappears and I can click back in the window and the right cursor key will take it right but with same stuck results.
- The example code allows me to try different phaser 3 versions and I did this and got same results.
I am using ubuntu 16.04 (I also tried 18.04 machine), nodejs v14.7.0 (I also tried v12), npm 6.14.7.
This first was noticed while I was following along on a class which used the “this.cursorKeys.space.isDown” and after key was hit it always returned true no matter when I released the key. I inserted javascript code using onkeydown and it successfully detected when key was released.
I have tried this on multiple versions of ubuntu, multiple machines, and from multiple clients and I get the same results.
Any help you can provide would be greatly appreciated.
Ron
Update: I tried it using firefox and it works fine. The Chrome ver I am using is 84.0.4147.105. I did not expect it to be related to Chrome as that same browser works fine when running the same (presumably) code from the phaser site.