You can use this function
swiperight or other direction
// jquery mobile $("#id").swiperight(function() { //do some with $.mobile.changePage function }); $("#id").swipeleft(function() { //do some $.mobile.changePage function }); // javascript document.ontouchmove = function(e) { var target = e.currentTarget; while(target) { if(checkIfElementShouldScroll(target)) return; target = target.parentNode; } e.preventDefault(); };
source share