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