Skip to content

Commit

Permalink
Merge pull request #230 from thornbill/fix-scrollbar
Browse files Browse the repository at this point in the history
Remove unnecessary overflowY changes
  • Loading branch information
anthonylavado committed Apr 30, 2019
2 parents 099fe24 + 27c4a00 commit c491731
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions src/controllers/livetvsuggested.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ define(["layoutManager", "userSettings", "inputManager", "loading", "globalize",
getTabController(page, index, function (controller) {
initialTabIndex = null;

if (1 === index) {
document.body.classList.add("autoScrollY");
} else {
document.body.classList.remove("autoScrollY");
}

if (-1 == renderedTabs.indexOf(index)) {
if (1 === index) {
renderedTabs.push(index);
Expand Down Expand Up @@ -362,7 +356,6 @@ define(["layoutManager", "userSettings", "inputManager", "loading", "globalize",
if (currentTabController && currentTabController.onHide) {
currentTabController.onHide();
}
document.body.classList.remove("autoScrollY");
inputManager.off(window, onInputCommand);
});
view.addEventListener("viewdestroy", function (evt) {
Expand Down
2 changes: 0 additions & 2 deletions src/controllers/videoosd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,6 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
dom.addEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
passive: true
});
document.body.classList.add("autoScrollY");
showOsd();
inputManager.on(window, onInputCommand);
dom.addEventListener(window, "keydown", onWindowKeyDown, {
Expand All @@ -1190,7 +1189,6 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
dom.removeEventListener(document, window.PointerEvent ? "pointermove" : "mousemove", onPointerMove, {
passive: true
});
document.body.classList.remove("autoScrollY");
inputManager.off(window, onInputCommand);
events.off(playbackManager, "playerchange", onPlayerChange);
releaseCurrentPlayer();
Expand Down
5 changes: 0 additions & 5 deletions src/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,11 @@ html {
}

body {
overflow-y: scroll !important;
overflow-x: hidden;
background-color: transparent !important;
-webkit-font-smoothing: antialiased
}

body.autoScrollY {
overflow-y: auto !important
}

.mainAnimatedPage {
contain: style size !important
}
Expand Down

0 comments on commit c491731

Please sign in to comment.