API

Interface PointerTouch

Data relating to a touch event on the screen.

interface PointerTouch {
    button?: number;
    pointerId: number;
    type: any;
    x: number;
    y: number;
}
Index
button?: number

The touch event's associated button ID (0: left, 1: middle, 2: right, etc.)

pointerId: number

Id of touch. Unique for each finger.

type: any

Event type passed from DOM.

x: number

X coordinate of touch.

y: number

Y coordinate of touch.