mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #230 from thornbill/fix-scrollbar
Remove unnecessary overflowY changes
This commit is contained in:
commit
c491731322
@ -284,12 +284,6 @@ define(["layoutManager", "userSettings", "inputManager", "loading", "globalize",
|
|||||||
getTabController(page, index, function (controller) {
|
getTabController(page, index, function (controller) {
|
||||||
initialTabIndex = null;
|
initialTabIndex = null;
|
||||||
|
|
||||||
if (1 === index) {
|
|
||||||
document.body.classList.add("autoScrollY");
|
|
||||||
} else {
|
|
||||||
document.body.classList.remove("autoScrollY");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (-1 == renderedTabs.indexOf(index)) {
|
if (-1 == renderedTabs.indexOf(index)) {
|
||||||
if (1 === index) {
|
if (1 === index) {
|
||||||
renderedTabs.push(index);
|
renderedTabs.push(index);
|
||||||
@ -362,7 +356,6 @@ define(["layoutManager", "userSettings", "inputManager", "loading", "globalize",
|
|||||||
if (currentTabController && currentTabController.onHide) {
|
if (currentTabController && currentTabController.onHide) {
|
||||||
currentTabController.onHide();
|
currentTabController.onHide();
|
||||||
}
|
}
|
||||||
document.body.classList.remove("autoScrollY");
|
|
||||||
inputManager.off(window, onInputCommand);
|
inputManager.off(window, onInputCommand);
|
||||||
});
|
});
|
||||||
view.addEventListener("viewdestroy", function (evt) {
|
view.addEventListener("viewdestroy", function (evt) {
|
||||||
|
@ -1169,7 +1169,6 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
|
|||||||
dom.addEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
|
dom.addEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
|
||||||
passive: true
|
passive: true
|
||||||
});
|
});
|
||||||
document.body.classList.add("autoScrollY");
|
|
||||||
showOsd();
|
showOsd();
|
||||||
inputManager.on(window, onInputCommand);
|
inputManager.on(window, onInputCommand);
|
||||||
dom.addEventListener(window, "keydown", onWindowKeyDown, {
|
dom.addEventListener(window, "keydown", onWindowKeyDown, {
|
||||||
@ -1190,7 +1189,6 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
|
|||||||
dom.removeEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
|
dom.removeEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
|
||||||
passive: true
|
passive: true
|
||||||
});
|
});
|
||||||
document.body.classList.remove("autoScrollY");
|
|
||||||
inputManager.off(window, onInputCommand);
|
inputManager.off(window, onInputCommand);
|
||||||
events.off(playbackManager, "playerchange", onPlayerChange);
|
events.off(playbackManager, "playerchange", onPlayerChange);
|
||||||
releaseCurrentPlayer();
|
releaseCurrentPlayer();
|
||||||
|
@ -29,16 +29,11 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
overflow-y: scroll !important;
|
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
-webkit-font-smoothing: antialiased
|
-webkit-font-smoothing: antialiased
|
||||||
}
|
}
|
||||||
|
|
||||||
body.autoScrollY {
|
|
||||||
overflow-y: auto !important
|
|
||||||
}
|
|
||||||
|
|
||||||
.mainAnimatedPage {
|
.mainAnimatedPage {
|
||||||
contain: style size !important
|
contain: style size !important
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user