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

Swiping one item at a time (question) #90

Closed
codejet opened this issue Jun 29, 2017 · 8 comments
Closed

Swiping one item at a time (question) #90

codejet opened this issue Jun 29, 2017 · 8 comments

Comments

@codejet
Copy link

codejet commented Jun 29, 2017

Hey, is there a way to enforce that the carousel only moves one item at a time, no matter how strong/fast the swipe is, without using a method/callback property? It already works relatively well (using the code of example 1, even better when activating momentum it seems), but it's also not too hard to swipe multiple items at a time.

@bd-arc
Copy link
Contributor

bd-arc commented Jun 29, 2017

Hi @codejet,

If you didn't read it already, you might find this useful.

I suggest you play with the prop scrollEndDragDebounceValueand set it to smaller values or even 0 (note that this prop only works when momentum is disabled). I also recommend that you take a look at ScrollView's decelerationRate (iOS only). Unfortunately, ScrollView on Android doesn't provide much fine-tuning :-(

Hope this helps anyway.

@bd-arc bd-arc closed this as completed Jun 29, 2017
@sridhard
Copy link

@codejet I am also looking for this feature. How you have supported this?

@codejet
Copy link
Author

codejet commented Jun 28, 2018

sorry @sridhard, i don't have access to the code anymore and after one year also don't remember the details/solution

@evanjmg
Copy link

evanjmg commented Nov 1, 2018

adding decelerationRate={0} works for me though the scroll is a little slow on android

@NishargShah
Copy link

NishargShah commented Aug 24, 2020

@codejet how to solve this in 2020 because in V3.2.0 property scrollEndDragDebounceValue is removed and enableMomentum will be removed in V4

@princefishthrower
Copy link

Also wondering this, upgraded to 4.0.0-beta and its now possible to swipe through all items with a hard enough swipe.

@MathiasSvDK
Copy link

Any update on this?

@jslok
Copy link

jslok commented Feb 22, 2024

Any update on this?

This repo is no longer maintained.

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

8 participants