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

Is there any way to make it circular? #30

Closed
grillorafael opened this issue Apr 23, 2015 · 2 comments
Closed

Is there any way to make it circular? #30

grillorafael opened this issue Apr 23, 2015 · 2 comments

Comments

@grillorafael
Copy link

When I swipe out, instead of removing from the list, go back to the end of the list

@paishin
Copy link

paishin commented Apr 23, 2015

I havent tried it but i guess if you move the first element of your array to the end each time a card is swiped you would achieve what you want.

@grillorafael
Copy link
Author

I tried this but when I unshift an element on the cards array it pops on the screen.

What I did is to store a availableCards array, an cards array with only on element and when I swipe I get the next element from the availableCards and I push to the cards array removing the last card.

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

No branches or pull requests

3 participants