SHEET_FAST_FLICK_THRESHOLD

const
Interaction & Gestures

Velocity threshold (in pixels per millisecond) above which a swipe release on a BottomSheet is treated as a "fast flick". When exceeded, the sheet snaps one step in the direction of motion instead of snapping to the nearest position by distance. 0.5 px/ms ≈ a 200 px swipe in 400 ms.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Detecting a fast flick in a custom swipe handler

typescript