From b664e7d6317ffdf74bd349239cbf0819c1e4c1ca Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 1 Nov 2023 19:11:54 -0400 Subject: [PATCH] index.html.in: don't hide the body overflow on the menu screen --- index.html.in | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/index.html.in b/index.html.in index 454cca8..cd71cbb 100644 --- a/index.html.in +++ b/index.html.in @@ -26,13 +26,6 @@ background: transparent; } - html, body { - /* To create our "window" onto the scene, we're going to slide the - * SVG off the left-hand side of the screen, and we don't want - * scroll bars to appear. */ - overflow: hidden; - } - svg { /* Set the height to 100% of the screen, which we'll keep; and the * initial position to (0,0), which we're going to change @@ -545,6 +538,11 @@ /******************************************/ function go() { + /* To create our "window" onto the scene, we're going to slide the + * SVG off the left-hand side of the screen, and we don't want + * scroll bars to appear. */ + document.body.style.overflow = "hidden"; + const svg = document.querySelector("svg"); const menu = document.getElementById("menu"); svg.style.display = "initial"; -- 2.43.2