pub const MAX_VELOCITY: f32 = 2500.0;Expand description
Maximum tracked velocity (px/s), clamped in track_velocity/
set_velocity. Without a cap, a very fast flick produced a
proportionally very long coast — found via real trackpad testing +
direct calculation: at friction=0.92 even a modest 200px/s release took
1.2s to decay below the stop threshold, and higher speeds took longer
still (1.9s+ at 6000px/s) — real touch/trackpad scroll views (iOS,
Android) cap max fling velocity for exactly this reason, so a hard flick
doesn’t feel unbounded/sluggish at the tail. 2500px/s is a fast, real
flick speed, not an arbitrary round number — chosen so the slowest
legitimate release still coasts, while capping how long the tail can run.