gtk,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:
Carlos Garnacho
2011-11-22 20:08:46 +01:00
parent a0225f9d07
commit bd2f0fe877

File diff suppressed because it is too large Load Diff