I am using this software joystick on Raspberry Pi touchscreen: https://codesandbox.io/s/427pook0p9
The problem is that when I drag the finger out of joystick element, the joystick gets stuck on the edge. Expected behavior would be that the joystick would return back to the middle in that case, because touchend event is set to "handleRelease" function, which returns the joystick back to the middle. I also tried with setting touchcancel to the same function, but it didn't help. This problem occurs on Firefox, but not on Chromium. I am using headless kiosk mode of the browser. I spent quite a few hours on this but couldn't manage to make it work.