lightbox scrolling issue #321

This commit is contained in:
rimu 2024-09-09 17:29:44 +12:00
parent a03d249a18
commit f49e4db596

View file

@ -480,8 +480,8 @@
function hideOverlay() { function hideOverlay() {
if (options.noScrollbars) { if (options.noScrollbars) {
document.documentElement.style.overflowY = 'auto'; document.documentElement.style.overflowY = '';
document.body.style.overflowY = 'auto'; document.body.style.overflowY = '';
} }
if (overlay.style.display === 'none') { if (overlay.style.display === 'none') {
return; return;