Hide system scrollbar when custom scrollbars is activated

This commit is contained in:
Jeremy Zhang 2018-08-09 22:29:27 +00:00
parent 3575de6696
commit c3a91ff29a
2 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,10 @@ body, #overall-main-content {
overflow-y: hidden; overflow-y: hidden;
} }
body.custom-scrollbars main {
overflow: hidden;
}
main { main {
overflow-y: scroll; overflow-y: scroll;
min-height: calc(100vh - 80px); min-height: calc(100vh - 80px);

View File

@ -368,6 +368,7 @@
autoHideScrollbar: !showScrollbar, autoHideScrollbar: !showScrollbar,
theme: scrollbarTheme theme: scrollbarTheme
}); });
$("body").addClass("custom-scrollbars");
} }
if (disabled) { if (disabled) {