Fix: Add documentElement overflow lock for complete scroll prevention
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user