Minimal JS object for detecting touch/swipe via a callback function with arguments: direction and distance. Only fired on touchend. Works on PC/mac browsers as well.
License: The Unlicense
HTML 28.95%JavaScript 71.05%
js-minimal-android-swipe-detect's Introduction
js-minimal-android-swipe-detect
Minimal JS object for detecting touch/swipe via a callback function with arguments: direction and distance.
Only fired on touchend.
Works on PC/mac browsers as well.
Currently only tested on Chrome, FF, IE8, IE9, Android 4.2