Ejecta icon indicating copy to clipboard operation
Ejecta copied to clipboard

Possible bug with changedTouches

Open apitaru opened this issue 13 years ago • 3 comments

I think there might be a bug with changedTouches, after the recent changes that were made to it. To reproduce:

  1. Place 3 fingers on the screen
  2. Remove them all at once, without triggering a touchmove event in the process
  3. 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.

apitaru avatar Dec 04 '12 17:12 apitaru

One more bug? This might be related -

  1. Place two fingers on the screen
  2. Release one. then the other.
  3. The identifier number of both touches is similar. I think the wrong one is being popped out (?)

apitaru avatar Dec 04 '12 17:12 apitaru

Sorry, I didn't think my last changes through. This should fix it now. Hopefully.

phoboslab avatar Dec 04 '12 18:12 phoboslab

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.

apitaru avatar Dec 04 '12 19:12 apitaru