0

I´m using jgestures for my lightbox which i have in my wordpress theme

on touch devices i want to navigate to the next or previous image with swipe gestures

when i use swipeleftdown as event, the function is called twice, when i use 3 events, like in my example, the function gets called six times

i want the function to get called only one time

jQuery('#lightboxcontainer').bind('swipeleftdown swipeleftup swipeleft', function(){
    if(jQuery(".arrowNext").attr("href")){
        showNextImage();
    }
});
4

0 に答える 0