loringdodge / ionic-ion-tinder-cards-2

MIT License
68 stars 36 forks source link

Discarding and Swiping Issues #7

Open ghost opened 8 years ago

ghost commented 8 years ago

Hello, I have two different issues first one is about "Discard" operation; when we try to discard a card, we are not able to drag other cards.

The second issue is about swiping, can we disable moving card up or down? because when we drag a card to bottom or top with a small angle to left/right side, the system is not able to detect is it "Yes" or "No".

loringdodge commented 8 years ago

I see you're a deleted user right now so not sure what that's all about.

But I've updated the module to allow for dragging after 'discard'. I've also added a min-threshold scope variable that enables users to defined for what threshold the cards will fly away on swipe. The lower the number, the more vertical the range. Or better yet, they will fly away and not snap back if the threshold is lower if a user swipes more up/down than left/right.

<td-card ng-repeat="card in cards.active" min-threshold="0.1">
   // transcluded content
</td-card>

Thanks, Loring