react-swipeable-views icon indicating copy to clipboard operation
react-swipeable-views copied to clipboard

Disable Swipe only in one direction

Open matichouraider opened this issue 4 years ago • 4 comments

Hello, is it possible to disabled swipe only in one direction ?

Expected Behavior

I would like add property to disable swipe action only in one direction. For example, I can swipe to left but not to right.

Current Behavior

Currentily only property "disabled" exist. But when I set disabled to True, right and left swipe aren't possibles.

Context

Currently I use the Swipe to navigate between dates. But I've a min date and a max date. I would like avoid user can swipe to an forbidden date.
I use Virtualized because I have lot of dates.

matichouraider avatar May 10 '21 12:05 matichouraider

Hey. Did you find a way to swipe in one direction only? Let me know how, if yes.

Sonakshi997 avatar Sep 20 '21 05:09 Sonakshi997

I have the same problem :(

sabermazoji avatar Sep 28 '21 13:09 sabermazoji

Do you guys found any solution for this issue?

Mani-Gme avatar Mar 09 '22 08:03 Mani-Gme

disabled={true} work for me.

nareshmdtechcs avatar May 08 '23 13:05 nareshmdtechcs