Swipe

This class recognizes and fires swipe gesture events.

Configs

4
durationLimit: Number= 700

The maximum amount of time (in milliseconds) for the swipe gesture to complete. If the touch gesture lasts longer than this limit, the gesture will not be recognized as a swipe.

idleLimit: Number= 250

The time limit (in milliseconds) for a gesture to receive no events. If no touch movement occurs for this amount of time, the gesture will not be recognized as a swipe.

threshold: Number= 80

The minimum amount of movement (in pixels) that must occur for the touch gesture to be recognized as a swipe.

tolerance: Number= 100

The maximum amount of movement (in pixels) that is allowed on the opposite axis to still be recognized as a swipe. By default, up to 30px of movement is allowed in the Y-axis of an X-axis swipe, and vice versa.