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

Autoplay without Infinite appears to have unexpected behavior #722

Open
vittau opened this issue Jun 11, 2021 · 0 comments
Open

Autoplay without Infinite appears to have unexpected behavior #722

vittau opened this issue Jun 11, 2021 · 0 comments

Comments

@vittau
Copy link

vittau commented Jun 11, 2021

Describe the bug
When the autoplay plugin is used without infinite, two things happen:

  • at the end, it just stays in the last slide instead of going back to the first one;
  • however, the onChange callback is fired with an out of bounds increment (which causes Dots to wrap back to the beginning, but the carousel remains in the last slide).

To Reproduce
Create a carousel with autoplay, but without infinite.

Expected behavior
The carousel should either go back to the first slide and keep autoplaying from there, or it should not call onChange with an out of bound value.

Environment
System:
OS: Windows 10 10.0.19042
CPU: (4) x64 Intel(R) Core(TM) i3-4170 CPU @ 3.70GHz
Memory: 8.69 GB / 15.95 GB
Binaries:
Node: 14.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.19041.1023.0
Internet Explorer: 11.0.19041.1
Firefox 89.0

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