onTouchMove method
void
onTouchMove(
- dynamic event
Implementation
void onTouchMove(event) {
trackPointer(event);
switch (state) {
case OrbitState.touchRotate:
if (scope.enableRotate == false) return;
handleTouchMoveRotate(event);
scope.update();
break;
case OrbitState.touchPan:
if (scope.enablePan == false) return;
handleTouchMovePan(event);
scope.update();
break;
case OrbitState.touchDollyPan:
if (scope.enableZoom == false && scope.enablePan == false) return;
handleTouchMoveDollyPan(event);
scope.update();
break;
case OrbitState.touchDollyRotate:
if (scope.enableZoom == false && scope.enableRotate == false) return;
handleTouchMoveDollyRotate(event);
scope.update();
break;
default:
state = OrbitState.none;
}
}