diff --git a/src/js/axis-vars.js b/src/js/axis-vars.js index 381d14f..64bc1da 100644 --- a/src/js/axis-vars.js +++ b/src/js/axis-vars.js @@ -158,7 +158,7 @@ module.exports = { } return { - pos: abs - off < 0.00001 ? 0 : abs - off, + pos: Math.abs(abs - off) < 0.00001 ? 0 : abs - off, abs: abs, off: off, min: min,