function checkThreshold(e, template, touch, fn) {
		var distX = touch.pageX - template.startX,
		    distY = touch.pageY - template.startY;

		// Do nothing if the threshold has not been crossed.
		if ((distX * distX) + (distY * distY) < (threshold * threshold)) { return; }

		triggerStart(e, template, touch, distX, distY, fn);
	}
// Logic for deciding when to trigger a movestart.
Logic for deciding when to trigger a movestart.
Logic for deciding when to trigger a movestart .
function checkThreshold(e, template, touch, fn) {
		var distX = touch.pageX - template.startX,
		    distY = touch.pageY - template.startY;
		if ((distX * distX) + (distY * distY) < (threshold * threshold)) { return; }
		triggerStart(e, template, touch, distX, distY, fn);
	}
function checkThreshold ( e , template , touch , fn ) { var distX = touch . pageX - template . startX , distY = touch . pageY - template . startY ; if ( ( distX * distX ) + ( distY * distY ) < ( threshold * threshold ) ) { return ; } triggerStart ( e , template , touch , distX , distY , fn ) ; }
Logic for deciding when to trigger a movestart.
Logic for deciding when to trigger a movestart .
// Do nothing if the threshold has not been crossed.