constructor(event: PointerEvent)
View sourceCopies pointerId to id and pointerType to pointerType. The
position is set from the event’s offsetX and offsetY.
Class
Captures the pointer data emitted by a browser pointercancel event.
The value preserves the pointer identity and device type, and stores the
event’s local offset as a reusable Vector2 position.
const cancel = new PointerCancel(event)
console.log(cancel.id, cancel.pointerType, cancel.position)constructor(event: PointerEvent)Copies pointerId to id and pointerType to pointerType. The
position is set from the event’s offsetX and offsetY.
The browser pointerId copied from event.pointerId.
The browser pointerType, such as mouse, pen, or touch.
Local pointer coordinates copied from offsetX and offsetY.
Default: ...