Testing in the computer it's working fine, but after exporting to html and testing in an iOS environment, the Joystick didn't recognize the touch.
Here is a temporary link to the game, if you want try it in iOS or Android: telles0808.itch.io/provisory-title
The events were placed like this:
While testing on the phone over lan I noticed the touchID is not 0 for the first touch.
If it's what should happen, so I'll need a workaround.
Ashley do you know about this issue? The first touchId should not supposed to be 0?
Well, the solution was check the touch ID in a condition and store its position in a variable, then use the variable instead of the touch.XForID inside the action...
Develop games in your browser. Powerful, performant & highly capable.
It may be this bug (ignore the "Android" part, I believe it happens on different devices):
If your game heavily uses multiple touch, you need to add a code that will recognize "stuck" touches and ignore them.