clutter-project/mx — pull request #60 by ManMower (2012-08-06 20:34:39+00:00)
Title: mx-kinetic-scroll-view: Add a new scroll policy to align scrolling based on initial interaction

(I accidentally mixed this in with a different pull request that has since been merged, so I'm recreating this one on its own)

This patch adds a SCROLL_POLICY_ALIGNED for which:
If a scroll is started in a mostly vertical direction the view will only scroll vertically.
If a scroll is started in a mostly horizontal direction the view will only scroll horizontally.
If a scroll is started diagonally the view will scroll in both directions.

While recent changes to MX allow the first two to be achieved by nesting scrolling widgets, there is not yet a way to have such a nested configuration scroll in both directions if the initial vector is "Mostly diagonal"