How to add Touch Events [Swipe Left/ Right] to a image gallery
jquery
Solution
This jQuery plugin works well. http://www.netcu.de/jquery-touchwipe-iphone-ipad-library Easy to use. Ex:
$('.slideshow').touchwipe({
wipeLeft: function() {$('.slideshow').cycle('next');},
wipeRight: function() { $('.slideshow').cycle('prev');},
min_move_x: 60
});
Problem
I have been working on image gallery [html5] and its working fine in desktop version i would like to add touch based events for Ipad/Tablet devices. Can you please suggest how to add touch based events using javascript/jquery. Thanks, Srinivas