Skip to content

Commit

Permalink
Fix scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
jennie committed Nov 7, 2023
1 parent cc64b07 commit cfc65e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ body,
html {
margin: 0;
height: 100%; /* Full height */
overflow: hidden; /* Prevent body scrolling */
}

#hud {
Expand Down Expand Up @@ -107,6 +106,7 @@ html {

body[data-tags~="map-screen"] {
padding: 0;
overflow: hidden; /* Prevent body scrolling */
}
body.customization {
@apply pt-12 px-6 pb-0 absolute top-0 left-0 w-full h-full bg-neutral-900 text-neutral-400;
Expand Down
4 changes: 2 additions & 2 deletions twine_src/css/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -1571,8 +1571,6 @@ html {
margin: 0;
height: 100%;
/* Full height */
overflow: hidden;
/* Prevent body scrolling */
}

#hud{
Expand Down Expand Up @@ -1722,6 +1720,8 @@ html {

body[data-tags~="map-screen"] {
padding: 0;
overflow: hidden;
/* Prevent body scrolling */
}

body.customization{
Expand Down
2 changes: 1 addition & 1 deletion twine_src/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ setup.completeScenario = function (energyChange) {
(s) => s.title === currentPassageTitle
);
if (scenario) scenario.complete = true;
// setup.game.energy += energyChange;
story.checkpoint("Completed " + currentPassageTitle);
story.show("Map Screen");
story.state.changeEnergy(energyChange);
};
Expand Down

0 comments on commit cfc65e2

Please sign in to comment.