T
T
Tima2016-01-16 11:48:37
JavaScript
Tima, 2016-01-16 11:48:37

How to connect Mousewheel plugin for owlcarousel slider?

Good day. There is a site, I chose the owlcarousel slider for it , and so, this slider has a plugin for scrolling through slides with the mouse wheel , I’ve been sitting for about an hour, I can’t figure out how to connect it, I also looked at the instructions on the github , but apparently bad. Maybe someone knows how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2016-01-16
@qork

owl.on('mousewheel', '.owl-stage', function (e) {
    if (e.deltaY>0) {
        owl.trigger('next.owl');
    } else {
        owl.trigger('prev.owl');
    }
    e.preventDefault();
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question