Small resolution fix

This commit is contained in:
Piotr Rogowski 2021-04-18 21:17:43 +02:00
parent bbc41d5d25
commit 7b64688a85
No known key found for this signature in database
GPG Key ID: F40F61D5587F5673
1 changed files with 1 additions and 1 deletions

View File

@ -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