Skip to content

Commit

Permalink
Fix bug with touch and selector interactables
Browse files Browse the repository at this point in the history
After an action ended, the target would not be cleared so the action
would be repeated if the pointer is dragged from an element that
doesn't start a different action.

https://gitter.im/taye/interact.js?at=5523d1d92435c9553cf6d3b4
  • Loading branch information
taye committed Apr 7, 2015
1 parent f0e95c9 commit d8df3de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2574,9 +2574,7 @@
},

clearTargets: function () {
if (this.target && !this.target.selector) {
this.target = this.element = null;
}
this.target = this.element = null;

this.dropTarget = this.dropElement = this.prevDropTarget = this.prevDropElement = null;
},
Expand Down

0 comments on commit d8df3de

Please sign in to comment.