From 0c2809acbc5ed62be6b7e66750c95d50f8120cfd Mon Sep 17 00:00:00 2001 From: Michael DiBernardo Date: Sun, 25 Aug 2024 14:46:44 -0400 Subject: [PATCH] I give up on centering for now. --- main.js | 9 --------- style.css | 9 --------- 2 files changed, 18 deletions(-) diff --git a/main.js b/main.js index c454322..ffdf674 100644 --- a/main.js +++ b/main.js @@ -26,13 +26,4 @@ document.addEventListener("load", function () { const walkY = (y - startY) * 2; window.scrollTo(scrollLeft - walkX, scrollTop - walkY); }); - - const centerPoint = document.getElementById("center-point"); - - // Scroll to the center point - centerPoint.scrollIntoView({ - behavior: "auto", - block: "center", - inline: "center", - }); }); diff --git a/style.css b/style.css index 1a0b33c..bfe10e6 100644 --- a/style.css +++ b/style.css @@ -85,15 +85,6 @@ body { #scrollable-area { width: 50000px; height: 50000px; - position: relative; background-image: url("./img/forest-tile-512x512.jpg"); background-repeat: repeat; } - -#center-point { - position: absolute; - top: 50%; - left: 50%; - width: 1px; - height: 1px; -}