O
O
Oslar2018-09-26 10:58:38
JavaScript
Oslar, 2018-09-26 10:58:38

Why doesn't scrolling the slider with the mouse work in the parallax slider?

Slider demo
Here's my script, which is supposed to scroll the slides with the mouse wheel, but why doesn't it work. Where is the problem?
Perhaps the button names are not navNext, navPrev for this slider?

$(document).ready(function () {
        $('#da-slider').cslider();
        $('#da-slider').mousewheel(function(e) {
            e.preventDefault();

            if (e.deltaY < 0) {
              $(this).cslider('navNext');
            } else {
              $(this).cslider('navPrev');
            }
          });
      });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Web__Nikita03, 2018-09-26
@Web__Nikita03

Use slick , it's responsive plus there is a breakpoint .
Also it is in bower

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question