This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***************************************** | |
/* DOM touch support module | |
/*****************************************/ | |
(function(document) { | |
var TAPTRESHOLD = 200, // time within a double tap should have happend | |
TAPPRECISION = 60 / 2, // distance to identify a swipe gesture | |
touch = { }, | |
tapCount = 0, // counts the number of touchstart events | |
tapTimer = 0, // timer to detect double tap | |
isTouchSwipe = false, // set to true whenever |