You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
Removing cards using this.cards.shift() is causing issue on swipe effect on tapping like/dislike button.
I am loading 3 cards initially and then removing cards one by one on swiping using this.cards.shift() and also pushing a card on each removal using this.cards.push(....). Also instead of using cardCursor, I am always removing card at 0th index and adding one card at the end(Index 2) at the same time on swiping.
After using .shift() method, when we try to swipe the card then the swipe effect works but when we use like/dislike button then the swipe effect is not getting shown and the card is getting removed abruptly with no effect. What could be the possible reason?
And thanks a lot for such a nice module.
The text was updated successfully, but these errors were encountered:
Removing cards using
this.cards.shift()
is causing issue on swipe effect on tapping like/dislike button.I am loading 3 cards initially and then removing cards one by one on swiping using
this.cards.shift()
and also pushing a card on each removal usingthis.cards.push(....)
. Also instead of using cardCursor, I am always removing card at 0th index and adding one card at the end(Index 2) at the same time on swiping.After using
.shift()
method, when we try to swipe the card then the swipe effect works but when we use like/dislike button then the swipe effect is not getting shown and the card is getting removed abruptly with no effect. What could be the possible reason?And thanks a lot for such a nice module.
The text was updated successfully, but these errors were encountered: