0

I'm looking out for a way to add two finger swipe on Vertical Swiper.

I tried getting object from swiper.touches object, but it didn't help me returning length of fingers used while swiping like give in Docs.

https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length

Any other approach to do this is also welcomed.

Thanks in advance!

Rachna Rai
  • 11
  • 1
  • 6

1 Answers1

0

If you activate the mousewheel plugin, Swiper will accept sideways scrolling including two-finger scroll

const swiper = new Swiper('.swiper', {
  mousewheel: true
});

https://swiperjs.com/swiper-api#mousewheel-control

Hyenabyte
  • 1
  • 1