Closed steventnorris-40AU closed 6 years ago
Well, you have 2 options: fix this and disable the buttons in your code, or create a PR with a fix for all swipe events with and empty deck 👍
At this point, I've got some code in my button events that just check indexes off of your swipe component. It works, but I'm sure the code could be moved into your component itself to prevent the index jump. I'm not sure when I'll have time, but I'll try to do a PR if I can, see what I see.
Was able to debug this and it looks like after the last swipe the deck doesn't trigger the swipedAll event.
I have a setup like this:
If the last index has been reached (aka there are no more cards in the stack) and either of those buttons are pressed, the stack reverts back to index 1, with the full stack from index 1 to end. My assumption would be that if the last index has been reached, no more cards should be swipeable, regardless of the button being touched.