Skip to main content

Interface: TouchUpdate<T = unknown>

Defined in: core/touch-press.ts:69

The transitions the adapter acts on this frame.

Type Parameters

Type ParameterDefault type
Tunknown

Properties

PropertyTypeDescriptionDefined in
phaseTouchPhase-core/touch-press.ts:70
pressedbooleanTrue on the exact update where a press started; pressTarget is set.core/touch-press.ts:72
pressTargetT | undefinedThe target under the finger when the press started; kept through the hold.core/touch-press.ts:76
releasedbooleanTrue on the exact update where the hold ended.core/touch-press.ts:74
releaseTargetT | undefinedThe target under the finger at the release, which may differ from pressTarget.core/touch-press.ts:78
sameTargetbooleanOn a release, whether it happened over the same target the press did.core/touch-press.ts:80