Skip to content

Loading…

callback binds function on fancybox #237

Open
Spica2 opened this Issue · 0 comments

1 participant

@Spica2

I bind a function to the fancybox with a callback like so

afterShow: function(){ 
    $('.fancybox-opened').on('leftSwipe', function(){
        $.fancybox.next();
    })
    .on('rightSwipe', function(){
        $.fancybox.prev();
    }); 
},

But then the wrapper container doesnt get removed anymore, only the class fancybox-opened gets removed. How to get the container removed again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.