mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Enable headroom only on mobile
This commit is contained in:
parent
bbf1f8d5df
commit
552390a9f9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,8 +103,10 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
|
|||||||
headerHomeButton.addEventListener("click", onHeaderHomeButtonClick);
|
headerHomeButton.addEventListener("click", onHeaderHomeButtonClick);
|
||||||
headerCastButton.addEventListener("click", onCastButtonClicked);
|
headerCastButton.addEventListener("click", onCastButtonClicked);
|
||||||
|
|
||||||
|
if (layoutManager.mobile) {
|
||||||
initHeadRoom(skinHeader);
|
initHeadRoom(skinHeader);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function onCastButtonClicked() {
|
function onCastButtonClicked() {
|
||||||
var btn = this;
|
var btn = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user