Skip to content
pixi-silk
GitHub repository
Interface

GesturePoint

import type { GesturePoint } from 'pixi-silk/ui/gesture';

A point in the gesture’s space plus the event behind it.

Properties#

PropertyTypeDescriptionDefined in
buttonsnumberbuttons bit mask of the event (1 left, 2 right, 4 middle).ui/gesture.ts:18
dxnumberMovement since the press, local units.ui/gesture.ts:10
dynumber-ui/gesture.ts:11
eventFederatedPointerEventThe live event. Pixi pools events: read it inside the callback only.ui/gesture.ts:22
globalPointPosition on the canvas in CSS pixels (a copy).ui/gesture.ts:20
kindInputKindPointer kind, from the event’s pointerType. Unknown kinds count as mouse.ui/gesture.ts:13
pointerIdnumberCopied from the event, so a point stays valid after Pixi reuses the event object.ui/gesture.ts:15
pointerTypestring-ui/gesture.ts:16
xnumberPosition in the gesture’s space, local units.ui/gesture.ts:7
ynumber-ui/gesture.ts:8