PressState
import type { PressState } from 'pixi-silk/ui/blocks';
Hover and press state of a pressable block: springs from 0 to 1.
Properties#
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
hover | readonly | Spring | 1 while the pointer is over the block and it is enabled. | packages/pixi-silk/src/ui/blocks.ts:58 |
press | readonly | Spring | 1 while the block is held down. | packages/pixi-silk/src/ui/blocks.ts:60 |