From 0812a4da871de8a87d306d36809e450bd33eec40 Mon Sep 17 00:00:00 2001 From: Martin MOIZARD-LANVIN Date: Tue, 19 Apr 2016 10:20:39 +0200 Subject: [PATCH] Avoid creating to animation loop. --- paper-ripple.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paper-ripple.html b/paper-ripple.html index faccef2..63ec91f 100644 --- a/paper-ripple.html +++ b/paper-ripple.html @@ -657,7 +657,9 @@ ripple.upAction(event); }); - this.animate(); + if (!this._animating) { + this.animate(); + } }, onAnimationComplete: function() {