jl- / react-slide-deck

react carousel, swipe, slide deck, showcase, page section scroll ...
MIT License
86 stars 6 forks source link

Horizontal Wheel/Scroll Event #9

Closed ankitduseja closed 8 years ago

ankitduseja commented 8 years ago

I want to make the component react to horizontal scroll events (left or right) in a similar fashion as it responds to vertical wheel event currently. This enables a two finger horizontal swipe gesture on mousepads (in macs or the laptops that support it). This didn't seem to work in the attached demo. Is this currently supported?

A separate prop to enable/disable this event would make sense.

jl- commented 8 years ago

Hi @ankitduseja , I'm not sure if I've understood you correctly, you can check out this demo to see if that's the feature you want: click the 'Horizontal' button on the left bottom of the demo page, and then see the third Slide, it's scrollable

ankitduseja commented 8 years ago

Hi @jl- It seems to be working in the updated demo link you posted. Closing this issue!