Enable headroom only on mobile

This commit is contained in:
MrTimscampi 2020-01-03 23:50:34 +01:00
parent bbf1f8d5df
commit 552390a9f9
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);
}
if (bindHeader) {
if (bindHeader && layoutManager.mobile) {
initHeadroom(this);
}

View File

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