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

Définition

La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Valeur résolue

Écosystème

Utilisé par

Composables et composants qui consomment cette constante.

Usage

Exemples

Extraits de code prêts à coller utilisant cette constante.

Detecting a fast flick in a custom swipe handler

typescript