Possible bug with changedTouches
I think there might be a bug with changedTouches, after the recent changes that were made to it. To reproduce:
- Place 3 fingers on the screen
- Remove them all at once, without triggering a touchmove event in the process
- Run a console.log on the touch objects in changedTouches and you'll find that one of the touch objects are undefined - meaning the changeTouches length might be 2, but there's only 1 object in the stack.
This occasionally will happen with just 2 fingers, but almost always with 3 or 4.
Hope this makes sense, I can elaborate if needed.
One more bug? This might be related -
- Place two fingers on the screen
- Release one. then the other.
- The identifier number of both touches is similar. I think the wrong one is being popped out (?)
Sorry, I didn't think my last changes through. This should fix it now. Hopefully.
Thanks Dominic, seems fixed on my end. Amit
On 12/4/12 1:53 PM, Dominic Szablewski wrote:
Sorry, I didn't think my last changes through. This should fix it now. Hopefully.
— Reply to this email directly or view it on GitHub https://github.com/phoboslab/Ejecta/issues/69#issuecomment-11009820.