onPointerUp method

dynamic onPointerUp(
  1. dynamic event
)

Implementation

onPointerUp(event) {
  removePointer(event);

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

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

  scope.dispatchEvent(_endEvent);

  state = State.none;
}