basilio / responsiveCarousel

Simple carousel
MIT License
113 stars 64 forks source link

Infinite for only 2 elements #38

Open 23tux opened 10 years ago

23tux commented 10 years ago

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 commented 9 years ago

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

mvaldetaro commented 7 years ago

+1