kenwheeler/slick — pull request #862 by pixelthing (2014-12-12 13:53:25+00:00)
Title: Add a swipe angle to tune the page scrolling interaction on touch devices.

Firstly, thanks for an awesomely documented, feature rich, cross-browser, bullet-proof script.

This is a pull request that attempts to improve a tiny aspect of slick's UX.

On a touch device, when you scroll the page up and down, slick carousels often move a little left or right, as you rarely move your finger/thumb/stubby digit in a purely vertical motion. This gives rise to a slightly disjointed scrolling experience. It's because slick sees any movement 45deg from the horizontal axis as being targeted at the carousel (discarding it as a possible page scrolling action), and it's easy to stray into this zone as you move your thumb in mostly a circular motion.

This tweak allows the angle that slick targets to the carousel to be tweaked. In this commit, it's set at the same 45deg as in the current implementation to prevent any difference from current expectations, but I find that an angle of around 20deg gives a better user experience for scrolling the page, without detracting from swiping the carousel left and right. The "right" angle might vary by implementation or target device - hence making it configurable.

I hope you find this useful (even if not complete).

(apologies for the version number bump - it's only so *this fork* could be given a new github release so bower in our project could update it properly)