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

Carousel bugs #1546

Closed
justinlau12 opened this issue Aug 28, 2023 · 4 comments · Fixed by #1605
Closed

Carousel bugs #1546

justinlau12 opened this issue Aug 28, 2023 · 4 comments · Fixed by #1605
Labels
bug Things that aren't working right in the library.

Comments

@justinlau12
Copy link

Describe the bug

2 bugs with sl-carousel currently:
1. For different value slides per page and move, for even number screenshots it doesn't go to the last screenshot. Ever. But for an odd number of screenshots it goes to the last screenshot just fine.
2. Loop = true has a bug: after loading carousel for first time on page, then clicking somewhere else and going back to the same page w carousel, the screenshot starting index is all messed up.

To Reproduce

Steps to reproduce the behavior:
I really only care about the 1st bug atm, because loop was a workaround for the 1st bug but even loop has bugs.

  1. Set slides per page to 2, slides per move to 1 in the component attributes.
  2. Set an even number of slides in the component
  3. Scroll using the arrow buttons, doesn't navigate to last screenshot (next button disables)

Browser / OS

  • OS: Windows
  • Browser: all
@justinlau12 justinlau12 added the bug Things that aren't working right in the library. label Aug 28, 2023
@esharri2
Copy link
Contributor

Reproduction of issue (first one): https://codepen.io/esharri2/pen/yLGOgXv

@KonnorRogers
Copy link
Collaborator

@esharri2 thanks for the reproduction, I can see the issue with the slides-per-move to slides-per-page being different creates weird UX.

@alenaksu
Copy link
Collaborator

@KonnorRogers Happy to help if no one else is working on this already

@claviska
Copy link
Member

@alenaksu have at it! Thank you

@claviska claviska changed the title Major Sl-Carousel Bugs Carousel bugs Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants