Skip to content

Commit

Permalink
the movement’s duration should not explode for small curvatures, and …
Browse files Browse the repository at this point in the history
…should be longer when the curvature is important
  • Loading branch information
Fil committed Jun 5, 2020
1 parent 098c2ed commit a4dd859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zoom.js
Expand Up @@ -57,7 +57,7 @@ export default (function zoomRho(rho, rho2, rho4) {
}
}

i.duration = S * 1000;
i.duration = S * 1000 * rho / Math.SQRT2;

return i;
}
Expand Down

0 comments on commit a4dd859

Please sign in to comment.