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

Merge pull request #663 from MrTimscampi/disable-headroom-on-desktop

Enable headroom only on mobile
This commit is contained in:
dkanada 2020-01-22 17:06:45 +09:00 committed by GitHub
commit 040b86c74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -155,7 +155,7 @@ define(['scroller', 'dom', 'layoutManager', 'inputManager', 'focusManager', 'bro
initCenterFocus(this, this.scroller); initCenterFocus(this, this.scroller);
} }
if (bindHeader) { if (bindHeader && layoutManager.mobile) {
initHeadroom(this); initHeadroom(this);
} }

View file

@ -108,7 +108,9 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
headerCastButton.addEventListener("click", onCastButtonClicked); headerCastButton.addEventListener("click", onCastButtonClicked);
} }
initHeadRoom(skinHeader); if (layoutManager.mobile) {
initHeadRoom(skinHeader);
}
} }
function onCastButtonClicked() { function onCastButtonClicked() {