Expand description
§Scroll model
Repose separates visual scroll containers from scroll state.
This file implements inertial scroll states.
Velocities are expressed in px/sec and integrated with dt, so behavior is frame-rate independent.
Structs§
- Horizontal
Scroll State - X-only state
- Scroll
State - Inertial scroll state (single axis Y).
- Scroll
StateXY - 2D state
Functions§
- Horizontal
Scroll Area - Scroll
Area - Scroll container with inertia, like verticalScroll.
- Scroll
AreaXY - remember_
horizontal_ scroll_ state - remember_
scroll_ state - Remembered ScrollState (requires unique key).
- remember_
scroll_ state_ xy