Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

landing-page: Fix mobile scrolling bug when sidebar is toggled.

Eeshan Garg190ce61eedd5
diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js
index 2918748499f..d7d76406f4d 100644
--- a/static/js/portico/landing-page.js
+++ b/static/js/portico/landing-page.js
@@ -174,16 +174,19 @@ const events = function () {
setTimeout(() => {
$("nav ul").removeClass("show");
$("nav ul").css("transform", "");
+ $("body").removeClass("noscroll");
}, 500);
}
if ($("nav ul.show") && !$e.closest("nav ul.show").length && !$e.is("nav ul.show")) {
$("nav ul").removeClass("show");
+ $("body").removeClass("noscroll");
}
});
$(".hamburger").on("click", (e) => {
$("nav ul").addClass("show");
+ $("body").addClass("noscroll");
e.stopPropagation();
});