Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript callbacks in AnythingSlider when using swipe addon Reply To: callbacks in AnythingSlider when using swipe addon

#146032
aceeckert
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”.