Home › Forums › JavaScript › callbacks in AnythingSlider when using swipe addon › Reply To: callbacks in AnythingSlider when using swipe addon
August 7, 2013 at 12:29 pm
#146032
Historical Forums User
Participant
I found a solution.
I wrote this function:
function addSwipe(){
$(".anythingWindow").swiperight(function() {
$(".back a").trigger("click");
});
$(".anythingWindow").swipeleft(function() {
$(".forward a").trigger("click");
});
}
and call it at “onInitialized”.