I would like to know what happens when you touch multiple times and release some of them.
1. You touch and hold the screen using 2 different fingers (First touch is ID=0, Second touch is ID=1)
2. You release the first finger. The Second touch is still ID=1?
What happen if you touch again the screen without release the Second touch? Does the new touch ID will be 0 or 2?
Develop games in your browser. Powerful, performant & highly capable.
I haven't tested this but it would be extremely inconsistent with other logic if that third touch would be anything but 0. One thing is for sure though: releasing the first touch won't change the index of any other touches.
Edit: traditionally, this sort of system would fill the index of the lowest value first.