From a76460f5d6f18b31c66efb5b0fbbe70665b31c9d Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 3 Nov 2020 02:29:50 +0100 Subject: [PATCH] tools/fast: change delta from 50ms to 40ms --- cmd/tools/fast/fast_main.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/tools/fast/fast_main.js b/cmd/tools/fast/fast_main.js index fbf991321d..120401d7ce 100644 --- a/cmd/tools/fast/fast_main.js +++ b/cmd/tools/fast/fast_main.js @@ -1,3 +1,5 @@ +const delta = 40; + (function () { var table = document.querySelector("table"); var isTbody = table.children[0].nodeName == "TBODY"; @@ -31,13 +33,13 @@ vf: currentData.vf - prevData.vf, vh: currentData.vh - prevData.vh }; - if (Math.abs(result.vc) > 50) + if (Math.abs(result.vc) > delta) tr.children[vc].appendChild(createElement(result.vc)); - if (Math.abs(result.vv) > 50) + if (Math.abs(result.vv) > delta) tr.children[vv].appendChild(createElement(result.vv)); - if (Math.abs(result.vf) > 50) + if (Math.abs(result.vf) > delta) tr.children[vf].appendChild(createElement(result.vf)); - if (Math.abs(result.vh) > 50) + if (Math.abs(result.vh) > delta) tr.children[vh].appendChild(createElement(result.vh)); } });