Michał Lach
Michał Lach

Reputation: 1278

Mousewheel on vertical Swiper carousel doesnt work

I am trying to add mousewheel control to my SwiperJS carousel, but it doesnt seem to work. Looks like that just by adding mousewheel: true should do a trick, but it doesnt. I cannot find and support in offical documentation. Am I missing something ?

Here is example: https://codesandbox.io/s/swiper-react-forked-d5oic?file=/src/index.js

Upvotes: 1

Views: 2766

Answers (1)

95faf8e76605e973
95faf8e76605e973

Reputation: 14201

If you look at the their example on the github it would seem they developed this feature prior to Swiper 6.x.x

If you use 5.4.5 like they did in their example, the mousewheel functions should work.

https://codesandbox.io/s/swiper-react-forked-155qs

Upvotes: 2

Related Questions