From 64882d3e2003d3cdd8b0d5b31d7624e82a4dc740 Mon Sep 17 00:00:00 2001 From: Taye Adeyemi Date: Fri, 11 Sep 2015 19:55:37 +0100 Subject: [PATCH] Fix removal of idle interactions on pointerup A missing `break` in a for loop led to multiple interactions sometimes being removed. Closes #251 --- interact.js | 1 + 1 file changed, 1 insertion(+) diff --git a/interact.js b/interact.js index bdba47855..e32d4401d 100644 --- a/interact.js +++ b/interact.js @@ -2598,6 +2598,7 @@ // remove this interaction if it's not the only one of it's type if (interactions[i] !== this && interactions[i].mouse === this.mouse) { interactions.splice(indexOf(interactions, this), 1); + break; } } },