L-Sun
2025-04-03 13:17:47 +00:00
parent 2533a92873
commit f2865c7bb0

View File

@@ -6,5 +6,5 @@ export function getBgGridGap(zoom: number) {
const step = zoom < 0.5 ? 2 : 1 / (Math.floor(zoom) || 1);
const gap = clamp(20 * step * zoom, GRID_GAP_MIN, GRID_GAP_MAX);
return gap;
return Math.round(gap);
}