hey Ive got a problem, Im trying to use single swipe as a trigger to animate a div, if i declare :
$("#info1c").swipe({
swipeLeft:function(event, direction, distance, duration, fingerCount){
$('#block1').stop().animate({ top:'0', left: '-=2495px'},800);
},
threshold:0
});
it works, but if i declare afterwards:
$("#info1c").swipe({
swipeRight:function(event, direction, distance, duration, fingerCount){
$('#block1').stop().animate({ top:'0', left: '+=2495px'},800);
},
threshold:0
});
The div wont let me swipe right, how can i fix this?, i can only swipe to one direction in one specific div, Am i missing something in your plugin that i don't know? Could you tell what it is, and how it works?
Im kind of new to jQuery so i would appreciate you help thanks.