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

Better infinite scrolling behavior in a controlled carousel? #1041

Open
2 of 3 tasks
bwong365 opened this issue Dec 15, 2023 · 0 comments
Open
2 of 3 tasks

Better infinite scrolling behavior in a controlled carousel? #1041

bwong365 opened this issue Dec 15, 2023 · 0 comments

Comments

@bwong365
Copy link

Bugs and Questions

Prerequisites

  • I've searched open issues to make sure I'm not opening a duplicate issue
  • I have read through the docs before asking a question
  • I am using the latest version of nuka-carousel

Describe Your Environment

  • What version of nuka-carousel are you using? 5.6.0
  • What version of React are you using? 17.0.2

Describe the Problem

We have a carousel set up as a controlled component, via slideIndex. When using wrapAround, navigating past the last slide displays the first slide, which is expected, however the scroll direction goes to the left, as opposed to the right. Is there a way to continue controlling slideIndex, but to get this to scroll in a seamless looking fashion where the first slide still comes in from the right?

Codesandbox here

@bwong365 bwong365 changed the title Infinite scrolling behavior in a controlled carousel? Better infinite scrolling behavior in a controlled carousel? Dec 15, 2023
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

1 participant