From e52b7954a1f471da171907bcacb482e826fb3111 Mon Sep 17 00:00:00 2001 From: Jcparkyn <51850908+Jcparkyn@users.noreply.github.com> Date: Sun, 7 Jan 2024 23:24:09 +0000 Subject: [PATCH] Fix scroll repeat size --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 939d27f..6348182 100644 --- a/public/index.html +++ b/public/index.html @@ -24,7 +24,7 @@ connectedCallback() { let dragStart = null; const elem = this.firstChild; - const partialGridSizePx = (cellSizePx + gapPx) * gridSize; // Width and height of a partial grid + const partialGridSizePx = cellSizePx * gridSize + gapPx * (gridSize + 1); // Width and height of a partial grid const mod = (a, b) => ((a % b) + b) % b; const normalize = (n) => mod(n, partialGridSizePx) - partialGridSizePx