W
W
WhiteStar3212019-03-01 17:57:41
fancyBox
WhiteStar321, 2019-03-01 17:57:41

Fancybox + owl carousel how to remove swipe to carousel element after fancybox is closed?

I use the owl carousel plugin, it has pictures. One item on all screens. When you click on the photo, the image is enlarged using the fancybox plugin. But if you open, for example, 1 photo and scroll to 6, and then close it, then the carousel scrolls to 6 photos and bugs: the next and previous items are visible. As far as I understand, this fancybox scrolls to the photo where it was closed. Can this be removed somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergik_DS, 2019-04-25
@Sergik_DS

$('fancybox_seclector').fancybox({
        backFocus : false,
        hash   : false,
    });

The "backFocus" option reverses focus on the element when the fancybox slider is closed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question