Detect if the swipe is valid at the end of the touch event.
Merge pull request #131 from xanhast/fix-touchEnd-threshold-cancel

Detect if the swipe is valid at the end of the touch event.