madrobby/zepto — pull request #380 by davemo (2012-01-20 21:25:06+00:00)
Title: This commit adds scroll suppression from jQuery Mobile

This commit adds scroll suppression from jQuery Mobile as detailed here: http://code.jquery.com/mobile/latest/demos/docs/api/events.html

_"swipe"_

* Triggers when a horizontal drag of 30px or more (and less than 20px vertically) occurs within 1 second duration but these can be configured:

* **scrollSupressionThreshold** (default: 10px) – More than this horizontal displacement, and we will suppress scrolling
* **durationThreshold** (default: 1000ms) – More time than this, and it isn’t a swipe
* **horizontalDistanceThreshold** (default: 30px) – Swipe horizontal displacement must be more than this.
* **verticalDistanceThreshold** (default: 75px) – Swipe vertical displacement must be less than this.