late to the party but as i ran into the same i found this in the swiper docs:
https://swiperjs.com/swiper-api#mousewheel-control
answer by @mikrec works perfectly but if inside tag you can also do the following:
<Swiper
modules={[Mousewheel]}
mousewheel={{ forceToAxis: true }}
</Swiper>