fix bug with iOS closing mobile nav when scrolling

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-10-28 19:18:44 -06:00
parent 189659ff1e
commit b6929113bc

View File

@@ -354,9 +354,14 @@ function showMobileNav() {
function hideMobileNav() {
$(".lubelogger-mobile-nav").removeClass("lubelogger-mobile-nav-show");
}
var windowWidthForCompare = 0;
function bindWindowResize() {
windowWidthForCompare = window.innerWidth;
$(window).on('resize', function () {
if (window.innerWidth != windowWidthForCompare) {
hideMobileNav();
windowWidthForCompare = window.innerWidth;
}
});
}
function encodeHTMLInput(input) {