sandstreamdev / react-swipeable-list

Swipeable list component for React.
https://sandstreamdev.github.io/react-swipeable-list/
MIT License
125 stars 18 forks source link

scrollStartThreshold not work #247

Open Rickyc81 opened 1 year ago

Rickyc81 commented 1 year ago

scrollStartThreshold and swipeStartThreshold don't seem to work, I set various kinds of values, but the swipe never block

// project edited https://codesandbox.io/s/naughty-montalcini-pbgo25?file=/src/basic/BasicExample.js:1171-1191

thanks Ric

Rickyc81 commented 1 year ago

I correct myself, swipeStartThreshold it work, if i set 50px is visible that se real swipe start when 50px is passed, but i did not understand how to stop swipe.. i set scrollStartThreshold at different value.. but the swipe always comes to the end

I would like to do like in your example.gif, where scrolling gets stuck at some point

This part of docs is not clear..

"How far in pixels swipe needs to be done to start swiping on list item. After a swipe is started and goes beyond the threshold, scrolling is blocked."

and specially, "After a swipe is started and goes beyond the threshold, scrolling is blocked.", so if i set swipeStartThreshold to 50px, i expect that after 50px of swipe it block , but the opposite happens, after 50px of finger swipe the animation appears ..

AlexandraDimulescu commented 1 year ago

Hello, I'm using react-swipeable-list with list type IOS, like in the example above. For me it works fine, but I would like to stop the swiping after trailing/leading actions are revealed. Is there any way I can do this?