onPointerDown method

dynamic onPointerDown(
  1. dynamic event
)

Implementation

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

  if (_pointers.isEmpty) {
    scope.domElement.setPointerCapture(event.pointerId);

    scope.domElement.addEventListener('pointermove', onPointerMove);
    scope.domElement.addEventListener('pointerup', onPointerUp);
  }

  //

  addPointer(event);

  if (event.pointerType == 'touch') {
    onTouchStart(event);
  } else {
    onMouseDown(event);
  }
}