mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Move scrollbar switching to onDialogClosed
This commit is contained in:
parent
ab5c193a62
commit
a5b8444e7e
1 changed files with 3 additions and 3 deletions
|
@ -438,6 +438,9 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
|
||||||
|
|
||||||
inputManager.off(window, onInputCommand);
|
inputManager.off(window, onInputCommand);
|
||||||
document.removeEventListener((window.PointerEvent ? 'pointermove' : 'mousemove'), onPointerMove);
|
document.removeEventListener((window.PointerEvent ? 'pointermove' : 'mousemove'), onPointerMove);
|
||||||
|
// Shows page scrollbar
|
||||||
|
document.body.classList.remove('hide-scroll');
|
||||||
|
document.body.classList.add('force-scroll');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -614,9 +617,6 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
|
||||||
self.hide = function () {
|
self.hide = function () {
|
||||||
if (dialog) {
|
if (dialog) {
|
||||||
dialogHelper.close(dialog);
|
dialogHelper.close(dialog);
|
||||||
// Shows page scrollbar
|
|
||||||
document.body.classList.remove('hide-scroll');
|
|
||||||
document.body.classList.add('force-scroll');
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue