K
K
kleilike2015-10-20 10:33:17
JavaScript
kleilike, 2015-10-20 10:33:17

How to disable mouseDrag and touchDrag on hot in Owl Carousel?

Good day.
The task is this:
1. There is a slider that works on owlcarousel

$('.pages').owlCarousel({
        stopOnHover : true,
        navigation:false,
        paginationSpeed : 1000,
        goToFirstSpeed : 2000,
        singleItem : true,
        mouseDrag : true,
        touchDrag : true
    });

Scrolling works due to the parameters "mouseDrag" and "touchDrag"

2. Before-After.js is connected on one of the slides . It works based on dragging the slider.

It is necessary to disable "mouseDrag" and "touchDrag" from the slider while the mouse is in the block area where Before-After.js is connected

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
littleguga, 2015-10-20
@kleilike

The idea is so

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question