1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Switch scrollbars on slideshow.js

This commit is contained in:
ferferga 2020-05-17 00:33:02 +02:00
parent 8cbec3fe22
commit 7aa34f1be2
2 changed files with 10 additions and 0 deletions

View file

@ -124,3 +124,7 @@ div[data-role=page] {
.force-scroll { .force-scroll {
overflow-y: scroll; overflow-y: scroll;
} }
.hide-scroll {
overflow-y: hidden;
}

View file

@ -603,6 +603,9 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
*/ */
self.show = function () { self.show = function () {
createElements(options); createElements(options);
// Hides page scrollbar
document.body.classList.remove('force-scroll');
document.body.classList.add('hide-scroll');
}; };
/** /**
@ -611,6 +614,9 @@ 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');
} }
}; };
}; };