angular2-swing icon indicating copy to clipboard operation
angular2-swing copied to clipboard

Tapping on the card below the top card makes bottom card come up and top card go down

Open gauravparmar opened this issue 7 years ago • 4 comments

Tapping on the card below the top card makes bottom card come up and top card goes down and then instead of restricting user to topmost card, user can swipe card on 2nd position also instead of only the topmost card. Need to disallow moving any other card except the top card by the user.

gauravparmar avatar Jan 19 '18 06:01 gauravparmar

@gauravparmar can we get a plunkr for this please?

mashhoodr avatar Jan 19 '18 07:01 mashhoodr

@mashhoodr This happens when you use it on a mobile device where multiple taps can be done at the same time and while dragging the topmost card, you may see cards below it and drag them as well using other fingers holding topmost card aside with one finger. As I have 3 cards back to back, I am able to hold all of them with 3 different fingers at the same time and swipe them together or in any order which should not happen. I have implemented below example but I am maintaining 3 cards at a time in the stack - https://devdactic.com/ionic-2-tinder-cards/

You may also check partial code here - https://stackblitz.com/edit/angular-ijzrss?file=app%2Fapp.component.ts

Unable to observe that issue on the laptop but on a touchscreen phone, it is evident.

Is there a way to block swiping of any other card in the stack except topmost card?

Also thanks a lot to the creator of this module. It is really great.

gauravparmar avatar Jan 19 '18 13:01 gauravparmar

This would be a great fix for us too!

xyboox avatar Mar 26 '19 09:03 xyboox

same issue here

nascarjake avatar Jul 23 '19 22:07 nascarjake