I use padilicious to detect gestures for web pages that will be viewed on iOS and desktop computers. It is great for scrolling left / right for the previous and next pages of my site. However, it seems to override the default behavior in the iPhone / iPad when scrolling up / down. I would like the page to scroll up and down, which happens when I don't have additive work. Just the lack of up / down ignore code doesn't work.
The section of additive code that I was
function processingRoutine() { var swipedElement = document.getElementById(triggerElementID); if ( swipeDirection == 'left' ) { document.location = document.getElementById('nextPage').href; } else if ( swipeDirection == 'right' ) { document.location = document.getElementById('prevPage').href; } else if ( swipeDirection == 'up' ) { return; } else if ( swipeDirection == 'down' ) { return; } }
javascript html ios swipe
Vector Instructional Design
source share