Skip to content

Commit

Permalink
fix: Add passive arg to touchstart (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbuffetti authored and tleunen committed Apr 23, 2018
1 parent 9be1ec3 commit 6ffa1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clickdrag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function clickDrag(Component, opts = {}) {
document.removeEventListener('mouseup', this.onMouseUp);

if (touch) {
node.removeEventListener('touchstart', this.onMouseDown);
node.removeEventListener('touchstart', this.onMouseDown, {passive:true});
document.removeEventListener('touchmove', this.onMouseMove);
document.removeEventListener('touchend', this.onMouseUp);
}
Expand Down

0 comments on commit 6ffa1c1

Please sign in to comment.