A jQuery plugin to get swipe direction, distance, angle and speed on devices with or without touch support.
$(document).swipe()
.on('swipeStart', function(e) {
console.log('Swipe start', e.swipe);
})
.on('swipeMove', function(e) {
console.log('Swipe move', e.swipe);
// Log mouse position
console.log(e.originalEvent.pageX, e.originalEvent.pageY);
})
.on('swipeEnd', function(e) {
console.log('Swipe end', e.swipe);
});