This commit is contained in:
ed 2024-04-03 00:28:15 +00:00
parent f471b05aa4
commit 9c42cbec6f
2 changed files with 4 additions and 4 deletions

View file

@ -591,12 +591,13 @@ window.baguetteBox = (function () {
document.documentElement.style.overflowY = 'auto'; document.documentElement.style.overflowY = 'auto';
document.body.style.overflowY = 'auto'; document.body.style.overflowY = 'auto';
} }
if (overlay.style.display === 'none')
return;
if (options.duringHide) if (options.duringHide)
options.duringHide(); options.duringHide();
if (overlay.style.display === 'none')
return;
sethash(''); sethash('');
unbindEvents(); unbindEvents();
try { try {

View file

@ -4873,10 +4873,10 @@ var thegrid = (function () {
baguetteBox.destroy(); baguetteBox.destroy();
var br = baguetteBox.run(isrc, { var br = baguetteBox.run(isrc, {
noScrollbars: true,
duringHide: r.onhide, duringHide: r.onhide,
afterShow: function () { afterShow: function () {
r.bbox_opts.refocus = true; r.bbox_opts.refocus = true;
document.body.style.overflow = 'hidden';
}, },
captions: function (g) { captions: function (g) {
var idx = -1, var idx = -1,
@ -4899,7 +4899,6 @@ var thegrid = (function () {
}; };
r.onhide = function () { r.onhide = function () {
document.body.style.overflow = '';
if (!thegrid.ihop) if (!thegrid.ihop)
return; return;