Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 30fdffb

Browse files
Merge pull request #6 from fobaz/patch-3
Stop move animation on throwOut or destroy if panend would have not been called
2 parents 07bdfee + 8b999ec commit 30fdffb

File tree

1 file changed

+2
-0
lines changed
  • src/app/modules/ionic-swing/swing

1 file changed

+2
-0
lines changed

src/app/modules/ionic-swing/swing/card.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ const Card = (stack, targetElement, prepend) => {
475475
throwDirection: lastThrow.direction
476476
});
477477
} else if (where === THROW_OUT) {
478+
isDraging = false;
478479
springThrowOut.setCurrentValue(0).setAtRest().setVelocity(100).setEndValue(1);
479480

480481
eventEmitter.trigger('throwout', {
@@ -532,6 +533,7 @@ const Card = (stack, targetElement, prepend) => {
532533
* @returns {undefined}
533534
*/
534535
card.destroy = () => {
536+
isDraging = false;
535537
mc.destroy();
536538
springThrowIn.destroy();
537539
springThrowOut.destroy();

0 commit comments

Comments
 (0)