Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollStartThreshold not work #247

Open
Rickyc81 opened this issue Jan 17, 2023 · 2 comments
Open

scrollStartThreshold not work #247

Rickyc81 opened this issue Jan 17, 2023 · 2 comments

Comments

@Rickyc81
Copy link

Rickyc81 commented Jan 17, 2023

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
Copy link
Author

Rickyc81 commented Jan 17, 2023

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 ..

@Rickyc81 Rickyc81 changed the title scrollStartThreshold and swipeStartThreshold not works scrollStartThreshold not work Jan 17, 2023
@AlexandraDimulescu
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants