Skip to content

Commit

Permalink
Set touch-action: none.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jul 12, 2017
1 parent 870498d commit 3ca15e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default function() {
.on("touchstart.drag", touchstarted)
.on("touchmove.drag", touchmoved)
.on("touchend.drag touchcancel.drag", touchended)
.style("touch-action", "none")
.style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
}

Expand Down

0 comments on commit 3ca15e4

Please sign in to comment.