scrolledwindow: Rework physics behind kinetic scrolling
The maths being used didn't resemble much about velocities or friction/deceleration, so reimplement it in terms of velocity vectors and decelerations, measured in pixels/ms^2. Overshooting is also handled within the deceleration effect, turning into a constant acceleration vector in the opposite direction so it returns elastically within the boundaries.
This commit is contained in:
committed by
Matthias Clasen
parent
7f03de11ef
commit
193341c85d