Skip to content

Commit

Permalink
fix: reset direction when below the threshold
Browse files Browse the repository at this point in the history
fixes #110
  • Loading branch information
yoannmoinet committed Aug 24, 2019
1 parent 8355fb8 commit 6f41b38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nipple.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ Nipple.prototype.computeDirection = function (obj) {
if (!same.angle) {
this.trigger('dir dir:' + direction, obj);
}
} else {
this.resetDirection();
}

return obj;
};

Expand Down

0 comments on commit 6f41b38

Please sign in to comment.