Answer the question
In order to leave comments, you need to log in
Why does scrolling with the mouse not work when using swiper slide and any other carousel in it?
There is a page (fullscreen) on which I use the swiper slide plugin. It has a block with horizontal scrolling (does not fit into 1 screen). To scroll it with the mouse, set the hover function
var mySwiper = new Swiper('.index_page', {
speed: 400,
direction: 'vertical',
mousewheel: true,
spaceBetween: 0,
noSwipingClass: 'no-swipe',
});
$(".calendar__table").hover(function(){
mySwiper.mousewheel.disable();
}, function(){
mySwiper.mousewheel.enable();
});
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