handleTouchStartPan method

dynamic handleTouchStartPan()

Implementation

handleTouchStartPan() {
  if (pointers.length == 1) {
    panStart.set(pointers[0].pageX, pointers[0].pageY);
  } else {
    var x = 0.5 * (pointers[0].pageX + pointers[1].pageX);
    var y = 0.5 * (pointers[0].pageY + pointers[1].pageY);

    panStart.set(x, y);
  }
}