I'm using this wonderful plugin to capture wipe events on mobile devices: http://www.netcu.de/jquery-touchwipe-iphone-ipad-library
I'm using the code in the source of that page to get my image gallery cycling as it should be. However, my image gallery is the full width of the screen. Unfortunately, touchwipe seems to be preventing the default up and down wipes from scrolling up and down the page. Is there a way to make it use the default behaviour, except when other behaviour is specified?
$(document).ready(function() {
$('#imagegallery').cycle({
timeout: 0,
fx: 'scrollHorz',
next: '#next',
prev: '#prev'
});
$("#imagegallery").touchwipe({
wipeLeft: function() {
$("#imagegallery").cycle("next");
},
wipeRight: function() {
$("#imagegallery").cycle("prev");
}
});
});
I'm also open to other alternatives to achieving this same effect (other plugins, other methods). Thanks!
With this small patch to the jquery.touchwipe library:
you can then change your code to selectively call e.preventDefault():
(I've submitted the patch to the plugin author.)
I've found a temporary answer that partially works, found here: http://plugins.jquery.com/content/vertical-scroll
It would be good to get a better answer though.