Forums

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

Home Forums JavaScript AnythingSlider – callbacks with goForward/goBack Reply To: AnythingSlider – callbacks with goForward/goBack

#146031

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”.