From 0513aab2b7dd6e35ff7e678a424b4a13b41c4389 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Tue, 30 Jul 2024 18:20:00 +0530 Subject: [PATCH] math.abs --- src/js/axis-vars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,