trackGesture
import { trackGesture } from 'pixi-silk/ui/gesture';
function trackGesture(
target: Container,
handlers: GestureHandlers,
options?: GestureOptions
): () => void;
Reads tap, hold, flick and drag from one target, with the slop and timing of the pointer kind
(fingers get more room than mice). The drag keeps going when the pointer leaves the target.
One pointer at a time: a second finger is ignored until the first lifts. Sets the target’s
eventMode to static when it was not interactive. Returns a function that stops tracking.
Parameters#
| Parameter | Type |
|---|---|
target | Container |
handlers | GestureHandlers |
options | GestureOptions |
Returns#
() => void