mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #1213 from MrTimscampi/player-scrollbar
Hide the previous page when loading videoOsd
This commit is contained in:
commit
489aa04d94
1 changed files with 7 additions and 0 deletions
|
@ -106,10 +106,16 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hidePrePlaybackPage() {
|
||||||
|
let animatedPage = document.querySelector('.page:not(.hide)');
|
||||||
|
animatedPage.classList.add('hide');
|
||||||
|
}
|
||||||
|
|
||||||
function zoomIn(elem) {
|
function zoomIn(elem) {
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
var duration = 240;
|
var duration = 240;
|
||||||
elem.style.animation = 'htmlvideoplayer-zoomin ' + duration + 'ms ease-in normal';
|
elem.style.animation = 'htmlvideoplayer-zoomin ' + duration + 'ms ease-in normal';
|
||||||
|
hidePrePlaybackPage();
|
||||||
dom.addEventListener(elem, dom.whichAnimationEvent(), resolve, {
|
dom.addEventListener(elem, dom.whichAnimationEvent(), resolve, {
|
||||||
once: true
|
once: true
|
||||||
});
|
});
|
||||||
|
@ -1367,6 +1373,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
||||||
resolve(videoElement);
|
resolve(videoElement);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
hidePrePlaybackPage();
|
||||||
resolve(videoElement);
|
resolve(videoElement);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue