YIZHUANG / react-multi-carousel

A lightweight production-ready Carousel that rocks supports multiple items and server-side rendering with no dependency. Bundle size 2kb.
MIT License
1.25k stars 287 forks source link

Feature Request: carousel swipe with touchpad gestures #191

Open onair-lena opened 3 years ago

onair-lena commented 3 years ago

First of all thank you for this carousel project!

It would be nice to have the ability to swipe carousel with touchpad gestures. I mean when place two fingers on the touchpad and slide horizontally the carousel swipes like it would to on tablet or on phone.

Thank you.

sanderkooger commented 3 years ago

Hey We are looking for this feature too!! Our clients can not use the swipe function of their mousepad on mac os and windows machines.

namnguyen211 commented 3 years ago

i need this feature too. anyone has solution.

JomolJohn commented 3 years ago

I am also looking for a solution to this. Anyone has solution? Please tell me its urgent.

Daavidaviid commented 3 years ago

Me too, I think it is the expected behaviour from laptop users

sanderkooger commented 3 years ago

I was just diggin into this, If the slider starts to support horizontal scroll ( from mouse) the it should solve the problem

Im looking for a way to hook it into swipe gestures

sanderkooger commented 3 years ago

I have been digging deeper. It would be possible to add a listener for scrolls, but it would come with a bug in the current version.

If more than one slider exist on a page, and keyboard navigation is used it triggers all sliders on the page. This would happen with scroll too if its just added. So in order to make scroll work the row needs to become active on hover || selected, and then the listener of that row should start listening to left right key movements and scroll events.

sanderkooger commented 3 years ago

I havent found a way to make this work. any help would be welcome

sanderkooger commented 2 years ago

@YIZHUANG Is it possible to make the sliders listen to scroll events when onhover?

Reason im asking is we are using your module here: https://thisisfashion.tv and our user would really like this functionality, If needed @onair-lena is willing to write it and PR but we need some direction.

sanderkooger commented 2 years ago

@groomain I have seen you are a contributor too. Would you be willing to give us some guidance on how to add this functionality, also i see you live in Paris, So do i at the moment.... Wine in the 9th arr?

zumpious1 commented 1 year ago

Has there bin a solution found yet?

Mikhail-1985 commented 3 weeks ago

I came across the same need.