Skip to content
pixi-silk
GitHub repository
Interface

GestureOptions

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

Options of trackGesture.

Properties#

PropertyTypeDescriptionDefined in
buttons?number[]Mouse buttons that start a gesture (0 left, 1 middle, 2 right). Default [0]. Pens and touches always start one.ui/gesture.ts:57
flickSpeed?numberMinimum speed of a flick, units per second. Default 700. 0 turns flicks off.ui/gesture.ts:55
holdMs?numberLong-press time. Default 420 ms. 0 turns holds off.ui/gesture.ts:53
profiles?Partial<Record<InputKind, Partial<InputProfile>>>Per pointer kind overrides of slop and tapMs. See INPUT_PROFILES.ui/gesture.ts:59
space?Container<ContainerChild>Coordinates are reported in this container’s space. Default: the target’s parent, else the target.ui/gesture.ts:51