Expand description
§Scroll model
Repose separates visual scroll containers from scroll state.
This file implements scroll composables (wrappers that attach scroll bindings
as modifiers). The actual scroll state types live in repose_core::scroll.
Velocities are expressed in px/sec and integrated with dt, so behavior is frame-rate independent.
Structs§
- Horizontal
Scroll State - X-only state
- Scroll
Physics - Handles velocity estimation from input deltas, frame-rate-independent exponential decay, edge snapping, and animation state tracking.
- Scroll
State - Inertial scroll state (single axis Y).
- Scroll
StateXY - 2D state
Functions§
- Horizontal
Scroll Area - Horizontal scroll container with inertia.
- Scroll
Area - Scroll container with inertia, like verticalScroll.
- Scroll
AreaXY - Two-axis scroll container with inertia.
- remember_
horizontal_ scroll_ state - remember_
scroll_ state - Remembered ScrollState (requires unique key).
- remember_
scroll_ state_ xy