From 7b64688a8548045cd8da864b76530cbd957b6b41 Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Sun, 18 Apr 2021 21:17:43 +0200 Subject: [PATCH] Small resolution fix --- src/components/Log/Canvas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Log/Canvas.tsx b/src/components/Log/Canvas.tsx index 03af518..8198a3a 100644 --- a/src/components/Log/Canvas.tsx +++ b/src/components/Log/Canvas.tsx @@ -144,7 +144,7 @@ const Canvas = ({ // 1..x where 1 is max const resolution = useMemo(() => - Math.round(data.length / 1_000 / zoom) || 1, [data.length, zoom]); + Math.round(maxIndex / 5_000 / zoom) || 1, [maxIndex, zoom]); const dataWindow = useMemo( () => data