From 3f57ee8c4670ab3b12c4796f3082ecdd77a52e21 Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 16 Nov 2023 23:57:36 -0800 Subject: [PATCH] drop visible map recomputation time to 100ms (from 1000ms). lines fill in much faster when scrolling --- src/app/line/linesview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/line/linesview.tsx b/src/app/line/linesview.tsx index 79d048b1..9cd6993f 100644 --- a/src/app/line/linesview.tsx +++ b/src/app/line/linesview.tsx @@ -68,7 +68,7 @@ class LinesView extends React.Component< }); this.visibleMap = new Map(); this.collapsedMap = new Map(); - this.computeVisibleMap_debounced = debounce(1000, this.computeVisibleMap.bind(this)); + this.computeVisibleMap_debounced = debounce(100, this.computeVisibleMap.bind(this)); } @boundMethod