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; -}