Home › Forums › JavaScript › AnythingSlider – callbacks with goForward/goBack › Reply To: AnythingSlider – callbacks with goForward/goBack
August 7, 2013 at 12:28 pm
#146031
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”.