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

The "rewind" option - does not work correctly in the 0.7.12 version #70

Open
2 tasks done
MaxStetsenko opened this issue Jun 6, 2023 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@MaxStetsenko
Copy link

Checks

Version

0.7.12

Description

Slider settings:
Number of slides: 6
options={
arrows: true,
perPage: 4,
perMove: 4,
rewind: true,
}

With these settings, the "rewind" slider option doesn't work correctly.

Reproduction Link

https://codesandbox.io/s/37-forked-o8407s?file=/src/App.jsx

Steps to Reproduce

  1. Go to: https://codesandbox.io/s/37-forked-o8407s?file=/src/App.jsx
  2. Press the "next" button
  3. Press the "prev" button
  4. Go to version 0.7.5 and do the same thing I pointed out above. When you switch over, you'll see how it should work

Expected Behaviour

The expected result: when you click on the right arrow, the slider will first show the remaining 2 slides, when you click again, the slider will return to the first slide. Similarly in the other direction

@MaxStetsenko MaxStetsenko added the bug Something isn't working label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant