onPointerUp method

dynamic onPointerUp(
  1. dynamic event
)

Implementation

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

  if (event.pointerType == 'touch') {
    onTouchEnd(event);
  } else {
    onMouseUp();
  }

  //

  removePointer(event);

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

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