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:
commit
040b86c74b
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue