Touch Loop breaks when too many touches?

Hi, I'm trying to find a way around this problem where when I get more than 5 touches in the touch array the canvas seems to freeze until I take all touches off and touch with one finger again.

The code i'm using:

    var touchesDown = 0;
    touchesDown = touches.length;
    text(touchesDown, width/2,height/2);
    for (var i = 0; i < touches.length; i++) {
      text(touches[i].x.toFixed(2) + ", " + touches[i].y.toFixed(2), touches[i].x, touches[i].y - 50);
    }
Sign In or Register to comment.