tools/fast: change delta from 50ms to 40ms
parent
f32c6784e7
commit
a76460f5d6
|
@ -1,3 +1,5 @@
|
||||||
|
const delta = 40;
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
var table = document.querySelector("table");
|
var table = document.querySelector("table");
|
||||||
var isTbody = table.children[0].nodeName == "TBODY";
|
var isTbody = table.children[0].nodeName == "TBODY";
|
||||||
|
@ -31,13 +33,13 @@
|
||||||
vf: currentData.vf - prevData.vf,
|
vf: currentData.vf - prevData.vf,
|
||||||
vh: currentData.vh - prevData.vh
|
vh: currentData.vh - prevData.vh
|
||||||
};
|
};
|
||||||
if (Math.abs(result.vc) > 50)
|
if (Math.abs(result.vc) > delta)
|
||||||
tr.children[vc].appendChild(createElement(result.vc));
|
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));
|
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));
|
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));
|
tr.children[vh].appendChild(createElement(result.vh));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue