Spaces:
Running
Running
fix
Browse files- js/interactive_grid.js +2 -2
js/interactive_grid.js
CHANGED
@@ -223,7 +223,7 @@ function drawBackgroundBefore() {
|
|
223 |
const scale = Math.max(scaleX, scaleY);
|
224 |
|
225 |
const newWidth = bgWidth * scaleX;
|
226 |
-
const newHeight = bgHeight *
|
227 |
|
228 |
const xOffset = (canvasWidth - newWidth) / 2;
|
229 |
const yOffset = (canvasHeight - newHeight) / 2;
|
@@ -246,7 +246,7 @@ function drawBackgroundAfter() {
|
|
246 |
const scale = Math.max(scaleX, scaleY);
|
247 |
|
248 |
const newWidth = bgWidth * scaleX;
|
249 |
-
const newHeight = bgHeight *
|
250 |
|
251 |
const xOffset = (canvasWidth - newWidth) / 2;
|
252 |
const yOffset = (canvasHeight - newHeight) / 2;
|
|
|
223 |
const scale = Math.max(scaleX, scaleY);
|
224 |
|
225 |
const newWidth = bgWidth * scaleX;
|
226 |
+
const newHeight = bgHeight * scaleX;
|
227 |
|
228 |
const xOffset = (canvasWidth - newWidth) / 2;
|
229 |
const yOffset = (canvasHeight - newHeight) / 2;
|
|
|
246 |
const scale = Math.max(scaleX, scaleY);
|
247 |
|
248 |
const newWidth = bgWidth * scaleX;
|
249 |
+
const newHeight = bgHeight * scaleX;
|
250 |
|
251 |
const xOffset = (canvasWidth - newWidth) / 2;
|
252 |
const yOffset = (canvasHeight - newHeight) / 2;
|