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 < this._touchCurrent.length; i++) {
    if (this._touchCurrent[i].pointerId == event.pointerId) {
      this._touchCurrent.splice(i, 1, event);
      break;
    }
  }
}