Skip to content

Commit

Permalink
I give up on centering for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeboAtWinterlight committed Aug 25, 2024
1 parent e8612f5 commit 0c2809a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
});
9 changes: 0 additions & 9 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 0c2809a

Please # to comment.