I'm attempting to use the TouchSwipe-Jquery-Plugin to allow users to flick between two peices of content, left and right.
However, whilst this functionality is working, it doesnt allow the user to scroll up or down the page, which is requeired as the content overflows the viewport.
Here is my code:
$("#content").swipe( {
//Generic swipe handler for all directions
allowPageScroll:"AUTO",
swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
if(direction == "left") {
$('#accepts').show();
$('#data').hide();
}
if(direction == "right") {
$('#data').show();
$('#accepts').hide();
}
}
});
Does anyone know of a way to use this plugin whilst allowing the user to scroll?
Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire