Same behaviour with mousewheel and touchpad

59 views Asked by At

In this demo code in the swiper.js API, you can control the slides with mousewheel. If you scroll the swiper with the mousewheel you can scroll each slide singularly. If you scroll with two fingers on the touchpad, you scroll multiple slides with a single gesture. Is there any way to switch just one slide each time the user scrolls with two fingers on the touchpad?

I tried to modify the on scroll function but I am not able to trigger it, stop it and enable back after just one slide.

0

There are 0 answers