How to disable swiping fancybox slides by mousemove

Viewed 7790

I'm using fancybox 3. I need to turn off swiping fancybox slides by mousemove. I would like to leave only control buttons next\prev. How can I do that? Thanks.

3 Answers

The previous answer did not work for me on Fancybox 3.5.*. I had to move the touch option to inside the opts object, like as follows:

$.fancybox.open({
    src: yoursource,
    opts: {
        touch: false
    }
});
Related