1
0
Fork 0

Fix unreliable scroll unlock

Again, very dirty code, but the deadline is short. Clean this up in the future.
master
Emil Miler 2 years ago
parent 01001ddad8
commit 78681e36dc

@ -11,5 +11,8 @@ function toggle_menu() {
element_button.addEventListener("click", toggle_menu); element_button.addEventListener("click", toggle_menu);
for (i = 0; i < nav_items.length; i++) { for (i = 0; i < nav_items.length; i++) {
nav_items[i].addEventListener("click", toggle_menu); nav_items[i].addEventListener("click", function() {
toggle_menu();
document.body.classList.remove("noscroll");
});
} }

Loading…
Cancel
Save