onPointerUp method
dynamic
onPointerUp(
- 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);
}
}