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

I want to keep the card in the stack on swing right directions

Open samfortify opened this issue 7 years ago • 0 comments

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?

samfortify avatar Jul 25 '18 19:07 samfortify