D
D
Domestos0022017-09-09 11:05:49
fancyBox
Domestos002, 2017-09-09 11:05:49

How to disable drag and drop in fancybox 3?

Good day. I'm making a website using fancybox 3. Here's how:
d59617e421084f51b467b02513755f54.png
Popup needs to be adapted somehow. The idea came to initialize the slider from the previews below. But when you swipe this slider, the fancibox itself also slides. Is it possible to disable funsybox dragging over a specific area? You can make it easier - when resizing, replace the popup with an image, but I did not find a reinitialization method in the fancibox. Links to what has already been implemented in the same situation are also welcome, even if not with the help of a fancibox. Help me to understand

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Toropov, 2020-02-05
@nefone

in the link attributes specify:

<a data-options='{"touch" : false}' data-src="#box" href="javascript:;">Запуск fancybox</a>

or like this:
<a data-touch='false' data-src="#box" href="javascript:;">Запуск fancybox</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question