From 3a01335036b8df4d52d09a771ec8c844247a25d2 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 8 Feb 2025 22:12:35 -0800 Subject: fix: unable to scroll after exiting modal in editor --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index a276759..5e9a19c 100644 --- a/index.js +++ b/index.js @@ -180,13 +180,13 @@ window.addEventListener('load', () => { currentModalImage.dataset.description = modalDesc.value; } modal.style.display = 'none'; - document.body.style.overflow = 'hidden'; + document.body.style.overflow = 'auto'; }); window.addEventListener('click', (evt) => { if (evt.target == modal) { modal.style.display = 'none'; - document.body.style.overflow = 'hidden'; + document.body.style.overflow = 'auto'; } }); -- cgit v1.2.3