Fix: Add documentElement overflow lock for complete scroll prevention

This commit is contained in:
Local Server
2026-01-14 07:59:36 -06:00
parent 5ddd43d3a6
commit c88bc05c67

View File

@@ -372,13 +372,14 @@
`; `;
modal.style.display = "block"; modal.style.display = "block";
modalContent.scrollTop = 0;
document.body.style.overflow = "hidden"; document.body.style.overflow = "hidden";
document.documentElement.style.overflow = "hidden";
} }
// Close project modal // Close project modal
function closeProjectModal() { function closeProjectModal() {
document.getElementById("projectModal").style.display = "none"; document.getElementById("projectModal").style.display = "none";
document.body.style.overflow = "auto"; document.body.style.overflow = "auto";
document.documentElement.style.overflow = "auto";
} }
// Close modal on outside click // Close modal on outside click