Skip to content
pixi-silk
GitHub repository
Interface

PressState

import type { PressState } from 'pixi-silk/ui/blocks';

Hover and press state of a pressable block: springs from 0 to 1.

Properties#

PropertyModifierTypeDescriptionDefined in
hoverreadonlySpring1 while the pointer is over the block and it is enabled.packages/pixi-silk/src/ui/blocks.ts:58
pressreadonlySpring1 while the block is held down.packages/pixi-silk/src/ui/blocks.ts:60