diff --git a/src/zoom.js b/src/zoom.js index f275602..baebf7e 100644 --- a/src/zoom.js +++ b/src/zoom.js @@ -57,7 +57,7 @@ export default (function zoomRho(rho, rho2, rho4) { } } - i.duration = S * 1000 * rho / Math.SQRT2; + i.duration = Math.abs(S) * 1000 * rho / Math.SQRT2; return i; }