Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Wrap option #383

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Wrap option #383

wants to merge 7 commits into from

Conversation

mdedetrich
Copy link

This pull request adds the wrap option (default is true). If wrap is set to false, angular-carousel won't loop back to the start if it hits the last index (and vice versa)

@revolunet
Copy link
Owner

Hey, thanks for the contribution !
Isn't wrap the same as allow-loop ?

@mdedetrich
Copy link
Author

I just had a look at the code, I think wrap works a bit differently (for example, it will stop the looping even on things like auto slide). Allow loop only appears to work in regards to controls

I think that wrap will work the same way that auto loop does if you do happen to have controls

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants