Detect a finger swipe through JavaScript on the iPhone and Android
Simple vanilla JS code sample:
Simple vanilla JS code sample:
Simple vanilla JS code sample: Tested in Android.
OnSwipeTouchListener.java: Usage:
Remove event.preventDefault(); from all functions. In the function processingRoutine() {} add event.preventDefault(); for what you want.