Prevent sliding multiple slides by swiping on mobile phone #4239
-
Hi there, I use the following config for my slider: const slider = new Swiper('.swiper-container', {
slidesPerView: 1,
spaceBetween: 0,
centeredSlides: true,
cssMode: true,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}
}); Now when a user swipes on a mobile phone, the slider jumps trough multiple slides, based on how intense the user swipes. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
nolimits4web
Feb 16, 2021
Replies: 1 comment 1 reply
-
It is because you use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheZoker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is because you use
cssMode: true
. In this mode swiper basically usesoverflow: 'auto'
and no way to force swiping to fixed slide