Here is my code:
$(function(){
$("#container").swipe({
  swipeLeft:function(event, direction, distance, duration, fingerCount) {
        if(nav.current == 4) {return false;}
  }, 
  swipeRight:function(event, direction, distance, duration, fingerCount) {
        if(nav.current == 2) {return false;}
       
  }
});
I want to prevent SwipeLeft on page 4 and prevent SwipeRight on page 2. I put "return false;" but it still permits swiping.
Sorry, It seems I didn't quite understand...
Thx