mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix scrollbar for Youtube player
This commit is contained in:
parent
d644193441
commit
74227f38f5
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,9 @@ function createMediaElement(instance, options) {
|
|||
document.body.insertBefore(dlg, document.body.firstChild);
|
||||
instance.videoDialog = dlg;
|
||||
|
||||
// At this point, we must hide the scrollbar placeholder, so it's not being displayed while the item is being loaded
|
||||
document.body.classList.add('hide-scroll');
|
||||
|
||||
if (options.fullscreen && dlg.animate && !browser.slow) {
|
||||
zoomIn(dlg, 1).onfinish = function () {
|
||||
resolve(videoElement);
|
||||
|
@ -214,6 +217,7 @@ class YoutubePlayer {
|
|||
}
|
||||
destroy() {
|
||||
appRouter.setTransparency('none');
|
||||
document.body.classList.remove('hide-scroll');
|
||||
|
||||
const dlg = this.videoDialog;
|
||||
if (dlg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue