You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title suggests, if you include step and click the buttons to navigate you step through the number of slides equalling the step value. however if you swipe to navigate you navigate by only 1 at a time. not sure if this is an intentional implementation however it would be nice to have it adhere to the step value when navigating.
https://codesandbox.io/s/vqnq33qwny <- example of the issue.. navigate using the buttons navigates 2 at a time but swiping only navigates 1 at a time.
The text was updated successfully, but these errors were encountered:
@NathanGostelow Interesting. This seems like it should maybe be a prop you need to set. It could default to the number of "step" but that may break people's existing implementations?
@NathanGostelow Thanks for the suggestion. I implemented it today using dragStep as a new optional prop on CarouselProvider. This will let you set dragStep={2} and the small drags will navigate 2 at a time the same way the arrows do. The optional prop defaults to 1, so there will not be any changes to existing implementations.
I updated your code sandbox with the change below so you can check it out.
As the title suggests, if you include step and click the buttons to navigate you step through the number of slides equalling the step value. however if you swipe to navigate you navigate by only 1 at a time. not sure if this is an intentional implementation however it would be nice to have it adhere to the step value when navigating.
https://codesandbox.io/s/vqnq33qwny <- example of the issue.. navigate using the buttons navigates 2 at a time but swiping only navigates 1 at a time.
The text was updated successfully, but these errors were encountered: