So I'm using the following jQuery to allow the user to swipe left or right to navigate to different pages within the same document.
$('#main').bind('swiperight', function(){
window.location = '#menu';
});
$('#main').bind('swipeleft', function(){
window.location = '#showcase';
});
$('#showcase').bind('swiperight', function(){
window.location = '#main';
});
The problem is I don't have any control over the data-direction. It would make sense that when the user swipes to the right, that the content moves from left to right and vice-versa.
Any ideas?
Thanks!