From 059d5ee9ba2bee75d94b32bb9ec01ad829d2dc8c Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Wed, 14 Jan 2026 11:37:00 -0600 Subject: [PATCH] Make minStep jitter handling more dynamic. --- inventory/static/js/components/draw.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inventory/static/js/components/draw.js b/inventory/static/js/components/draw.js index 5d6ab97..8b8969f 100644 --- a/inventory/static/js/components/draw.js +++ b/inventory/static/js/components/draw.js @@ -1562,7 +1562,8 @@ function initGridWidget(root, opts = {}) { if (pts.length >= 2) { const coarse = [pts[0]]; - const minStep = 0.02; + const minStepPx = 0.75; + const minStep = minStepPx / cellSize; for (let i = 1; i < pts.length; i++) { if (dist2(pts[i], coarse[coarse.length - 1]) >= minStep * minStep) { coarse.push(pts[i]);