onTouchMove method

dynamic onTouchMove(
  1. dynamic event
)

Implementation

onTouchMove(event) {
  trackPointer(event);

  switch (state) {
    case STATE.TOUCH_ROTATE:
      if (scope.enableRotate == false) return;

      handleTouchMoveRotate(event);

      scope.update();

      break;

    case STATE.TOUCH_PAN:
      if (scope.enablePan == false) return;

      handleTouchMovePan(event);

      scope.update();

      break;

    case STATE.TOUCH_DOLLY_PAN:
      if (scope.enableZoom == false && scope.enablePan == false) return;

      handleTouchMoveDollyPan(event);

      scope.update();

      break;

    case STATE.TOUCH_DOLLY_ROTATE:
      if (scope.enableZoom == false && scope.enableRotate == false) return;

      handleTouchMoveDollyRotate(event);

      scope.update();

      break;

    default:
      state = STATE.NONE;
  }
}