SwipeDetector is a function written in pure js. It helps you to detect if swipe is made on right or left side. This fucntion supports computer browsers too.
#Usage:
var el = document.getElementById('swipeArea');
var sw = new SwipeDetect(el, 20); //20 means minimum swipe it should consider to decide if is swipe or not