angular-swing
angular-swing copied to clipboard
I want to keep the card in the stack on swing right directions
I can detect swing right and I'm calling:
onThrowOut(event: any) {
if (event.throwDirection === Direction.RIGHT)
{
const targetId = Number(event.target.id);
const targetCampain = this.ads.find(ad => ad.id === targetId);
this.openCampaign(targetCampain);
}
}
to perform a task but i want to keep the card in the stack. On swing left i want to remove the card.
So how can i keep the card in stack after the throwOut right is detected?