onPointerDown method
dynamic
onPointerDown(
- dynamic event
Implementation
onPointerDown(event) {
if (scope.enabled == false) return;
if (pointers.length == 0) {
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);
}
}