Skip to content

Commit

Permalink
Fix removal of idle interactions on pointerup
Browse files Browse the repository at this point in the history
A missing `break` in a for loop led to multiple interactions sometimes
being removed.

Closes #251
  • Loading branch information
taye committed Sep 11, 2015
1 parent b3e4ffb commit 64882d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
},
Expand Down

0 comments on commit 64882d3

Please sign in to comment.