onMouseMove method

dynamic onMouseMove(
  1. dynamic event
)

Implementation

onMouseMove(event) {
  if (scope.enabled == false) return;

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

      handleMouseMoveRotate(event);

      break;

    case State.dolly:
      if (scope.enableZoom == false) return;

      handleMouseMoveDolly(event);

      break;

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

      handleMouseMovePan(event);

      break;
  }
}