mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Merge pull request #5653 from dmitrylyzo/fix-videoosd-hide
Fix video OSD not fully hiding
This commit is contained in:
commit
74a3bd8768
@ -323,18 +323,14 @@ export default function (view) {
|
||||
}
|
||||
|
||||
function clearHideAnimationEventListeners(elem) {
|
||||
dom.removeEventListener(elem, transitionEndEventName, onHideAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
elem.removeEventListener(transitionEndEventName, onHideAnimationComplete);
|
||||
}
|
||||
|
||||
function onHideAnimationComplete(e) {
|
||||
const elem = e.target;
|
||||
if (elem != osdBottomElement) return;
|
||||
elem.classList.add('hide');
|
||||
dom.removeEventListener(elem, transitionEndEventName, onHideAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
elem.removeEventListener(transitionEndEventName, onHideAnimationComplete);
|
||||
}
|
||||
|
||||
const _focus = debounce((focusElement) => focusManager.focus(focusElement), 50);
|
||||
@ -364,9 +360,7 @@ export default function (view) {
|
||||
clearHideAnimationEventListeners(elem);
|
||||
elem.classList.add('videoOsdBottom-hidden');
|
||||
|
||||
dom.addEventListener(elem, transitionEndEventName, onHideAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
elem.addEventListener(transitionEndEventName, onHideAnimationComplete);
|
||||
currentVisibleMenu = null;
|
||||
toggleSubtitleSync('hide');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user