fix bug with iOS closing mobile nav when scrolling
This commit is contained in:
@@ -354,9 +354,14 @@ function showMobileNav() {
|
|||||||
function hideMobileNav() {
|
function hideMobileNav() {
|
||||||
$(".lubelogger-mobile-nav").removeClass("lubelogger-mobile-nav-show");
|
$(".lubelogger-mobile-nav").removeClass("lubelogger-mobile-nav-show");
|
||||||
}
|
}
|
||||||
|
var windowWidthForCompare = 0;
|
||||||
function bindWindowResize() {
|
function bindWindowResize() {
|
||||||
|
windowWidthForCompare = window.innerWidth;
|
||||||
$(window).on('resize', function () {
|
$(window).on('resize', function () {
|
||||||
hideMobileNav();
|
if (window.innerWidth != windowWidthForCompare) {
|
||||||
|
hideMobileNav();
|
||||||
|
windowWidthForCompare = window.innerWidth;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function encodeHTMLInput(input) {
|
function encodeHTMLInput(input) {
|
||||||
|
|||||||
Reference in New Issue
Block a user