-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
add back loop feature. #555
Conversation
@dvoytenko can you check if carousel integration tests still fails for you locally? |
8280b1f
to
d3afb63
Compare
@dvoytenko this is ready for review. |
if (nextItemIndex < 0) { | ||
return length + (nextItemIndex % length); | ||
} | ||
return nextItemIndex % length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(index + step + length) % length
is a bit shorter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
LGTM with a couple of comments. |
need to create a new one cause of private -> public switch.
need to finish documentation
TODOS: