Inferis/ViewDeck — pull request #192 by chrismiles (2012-11-21 06:02:22+00:00)
Title: Velocity of swipe open/close animations matches gesture speed.

Hi,

This patch improves the ViewDeck swipe open/close animations so that the velocity of the animation after swiping now more closely matches the user's swipe velocity.

i.e. if you swipe (or drag & release) quickly, the ViewDeck will open/close quickly. If you swipe/drag slowly, the ViewDeck will animate slowly. The animation speed is calculated to closely match the gesture velocity, with some min/max thresholds enforced to keep animation speeds sensible.

This animation behaviour is fairly subtle, but improves the quality of the ViewDeck. Compare old/new behaviour side-by-side to appreciate the difference. We've been running this in production for a few months now, it works nicely.

Let me know if you find any issues with it.

Cheers,
Chris