handleMouseMoveDolly method

dynamic handleMouseMoveDolly(
  1. dynamic event
)

Implementation

handleMouseMoveDolly(event) {
  dollyEnd.set(event.clientX, event.clientY);

  dollyDelta.subVectors(dollyEnd, dollyStart);

  if (dollyDelta.y > 0) {
    dollyOut(getZoomScale());
  } else if (dollyDelta.y < 0) {
    dollyIn(getZoomScale());
  }

  dollyStart.copy(dollyEnd);

  scope.update();
}