Answer the question
In order to leave comments, you need to log in
Scrolling owl carousel with mouse wheel, crossbrowser?
There is such a piece of code, it makes the owl carousel scroll with the mouse wheel, but the problem is that in Google Chrome everything is fine, in FireFox it does not react at all, in IE it scrolls only forward, no matter where you turn the wheel, what could be the problem and how to solve it decide ?
shpOwl[0].addEventListener('mousewheel', function(e) {
if (e.deltaY > 0) {
$('.shp-slider').trigger('prev.owl', [300]);
} else {
$('.shp-slider').trigger('next.owl', [300]);
}
e.preventDefault();
}, false);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question