Skip to main content

Module scroll_physics

Module scroll_physics 

Source
Expand description

Time-based scroll physics shared by scrollable components.

The primitives in this module keep their state in floating point pixels so sub-pixel input is accumulated until it can be presented by the renderer.

Structsยง

ExponentialInertia
Exponentially decaying inertial motion with exact time integration.
ScrollVelocity
A two-dimensional velocity in pixels per second.
ScrollVelocityTracker
A bounded, time-weighted velocity estimator for pointer samples.