Skip to main content

Module scroll

Module scroll 

Source
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§

HorizontalScrollState
X-only state
ScrollPhysics
Handles velocity estimation from input deltas, frame-rate-independent exponential decay, edge snapping, and animation state tracking.
ScrollState
Inertial scroll state (single axis Y).
ScrollStateXY
2D state

Functions§

HorizontalScrollArea
Horizontal scroll container with inertia.
ScrollArea
Scroll container with inertia, like verticalScroll.
ScrollAreaXY
Two-axis scroll container with inertia.
remember_horizontal_scroll_state
remember_scroll_state
Remembered ScrollState (requires unique key).
remember_scroll_state_xy