Skip to content

Latest commit

 

History

History
13 lines (5 loc) · 348 Bytes

README.md

File metadata and controls

13 lines (5 loc) · 348 Bytes

SwipeDetector

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