Skip to content

Commit

Permalink
Fix recently introduced bug breaking touch
Browse files Browse the repository at this point in the history
  • Loading branch information
Herst authored and mbostock committed Oct 30, 2017
1 parent b9e82b7 commit 3bd2bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zoom.js
Expand Up @@ -355,7 +355,7 @@ export default function() {
}
else if (g.touch0) p = g.touch0[0], l = g.touch0[1];
else return;
g.zoom("touch", constrain(translate(t, p, l), g.extent), translateExtent);
g.zoom("touch", constrain(translate(t, p, l), g.extent, translateExtent));
}

function touchended() {
Expand Down

0 comments on commit 3bd2bdd

Please sign in to comment.