This commit is contained in:
com02 2022-01-04 10:57:18 +09:00
parent a3e9d9f35f
commit cba4b869b9
2 changed files with 3 additions and 6 deletions

View File

@ -2122,4 +2122,4 @@ animation: animate-bg2 2.0s 1.9s ease-in infinite;
.loop-count .remote {display:none !important;}
.loop-count .remote.remote-main {display:inline-block !important;}
.scrollhidden {overflow:hidden;}
.scrollhidden {overflow:hidden;height:100%;position:fixed;}

View File

@ -380,21 +380,20 @@ $(document).ready(function(){
if (settings.animation.effect == "fade") {
menu.fadeIn(settings.animation.show);
$(".BG").fadeIn("fast");
$("html, body").addClass("scrollhidden");
$("html, body").addClass('scrollhidden').on('scroll touchmove mousewheel', function (e) {
e.preventDefault();
e.stopPropagation();
});
} else if (settings.animation.effect == "slide") {
menu.slideDown(settings.animation.show);
$(".BG").fadeIn("fast");
$("html, body").addClass("scrollhidden");
$("html, body").addClass('scrollhidden').on('scroll touchmove mousewheel', function (e) {
e.preventDefault();
e.stopPropagation();
});
} else {
menu.show();
menu.removeClass("hide");
$("html, body").removeClass("scrollhidden");
$("html, body").removeClass('scrollhidden').off('scroll touchmove mousewheel');
}
}
@ -409,7 +408,6 @@ $(document).ready(function(){
menu.removeAttr("style");
button.removeClass(settings.selected);
$(".BG").fadeOut("fast");
$("html, body").removeClass("scrollhidden");
$("html, body").removeClass('scrollhidden').off('scroll touchmove mousewheel');
});
} else if (settings.animation.effect == "slide") {
@ -417,7 +415,6 @@ $(document).ready(function(){
menu.removeAttr("style");
button.removeClass(settings.selected);
$(".BG").fadeOut("fast");
$("html, body").removeClass("scrollhidden");
$("html, body").removeClass('scrollhidden').off('scroll touchmove mousewheel');
});
} else {