Describe the bug
the "touchend" event should be listening to "canvas" rather than "document", as in my webapp, when i want to have 2 joysticks, and I let go of one of them, the "touchend" event gets fired on both of the joysticks.
To Reproduce
Steps to reproduce the behavior:
add 2 joysticks
touch 2 at the same time
let go of one
"touchend" will be fired for both joysticks, rather than just the one.
Expected behavior
touchend fired on the joystick that actually initialised it, rather than both
Screenshots
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Describe the bug the "touchend" event should be listening to "canvas" rather than "document", as in my webapp, when i want to have 2 joysticks, and I let go of one of them, the "touchend" event gets fired on both of the joysticks.
To Reproduce Steps to reproduce the behavior:
Expected behavior touchend fired on the joystick that actually initialised it, rather than both
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context None