updateTouchEvent method

dynamic updateTouchEvent(
  1. dynamic event
)

Update a PointerEvent inside current pointerevents array @param {PointerEvent} event

Implementation

updateTouchEvent(event) {
  for (var i = 0; i < _touchCurrent.length; i++) {
    if (_touchCurrent[i].pointerId == event.pointerId) {
      _touchCurrent.splice(i, 1, event);
      break;
    }
  }
}