Merge pull request #676 from hargata/Hargata/ios.resizebug

fix bug with iOS closing mobile nav when scrolling
This commit is contained in:
Hargata Softworks
2024-10-28 19:19:12 -06:00
committed by GitHub

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 () {
hideMobileNav();
if (window.innerWidth != windowWidthForCompare) {
hideMobileNav();
windowWidthForCompare = window.innerWidth;
}
});
}
function encodeHTMLInput(input) {