onTouchMove method

dynamic onTouchMove(
  1. dynamic event
)

Implementation

onTouchMove(event) {
  trackPointer(event);

  switch (state) {
    case State.touchRotate:
      if (scope.enableRotate == false) return;

      handleTouchMoveRotate(event);

      scope.update();

      break;

    case State.touchPan:
      if (scope.enablePan == false) return;

      handleTouchMovePan(event);

      scope.update();

      break;

    case State.touchDollyPan:
      if (scope.enableZoom == false && scope.enablePan == false) return;

      handleTouchMoveDollyPan(event);

      scope.update();

      break;

    case State.touchDollyRotate:
      if (scope.enableZoom == false && scope.enableRotate == false) return;

      handleTouchMoveDollyRotate(event);

      scope.update();

      break;

    default:
      state = State.none;
  }
}