Skip to content

Commit

Permalink
Fix scroll repeat size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jcparkyn committed Jan 7, 2024
1 parent 0552264 commit e52b795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e52b795

Please sign in to comment.