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

Infinite for only 2 elements #38

Open
23tux opened this issue Oct 16, 2014 · 2 comments
Open

Infinite for only 2 elements #38

23tux opened this issue Oct 16, 2014 · 2 comments

Comments

@23tux
Copy link

23tux commented Oct 16, 2014

When I try to use the carousel for only two elements, and I click next once, the previous buttons doesn't work anymore. When not clicking next, previous works as expected.

I think this is due to the line 283 where it says

var newItemActive = $(obj.itemActive).next('.crsl-item');

and the newItemActive is not found, because it only has 2 items.

@FrankTrog
Copy link

I can confirm that this is an issue. Not sure of the fix.

@mvaldetaro
Copy link

+1

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

3 participants