Moving scrollbar to main panel instead of the body to lock header and sidebar in place

This commit is contained in:
Asher Max Schweigart
2025-04-29 14:11:57 -04:00
parent 4e67a56ed2
commit 4e245def8f
3 changed files with 8006 additions and 7966 deletions

View File

@@ -408,17 +408,17 @@ $(function() {
});
// fix for infinite scroll on CaliBlur Theme (#981)
if ($("body").hasClass("blur")) {
$(".col-sm-10").bind("scroll", function () {
if (
$(this).scrollTop() + $(this).innerHeight() >=
$(this)[0].scrollHeight
) {
$loadMore.infiniteScroll("loadNextPage");
window.history.replaceState({}, null, $loadMore.infiniteScroll("getAbsolutePath"));
}
});
}
$(".col-sm-10").bind("scroll", function () {
if (
$(this).scrollTop() + $(this).innerHeight() >=
$(this)[0].scrollHeight
) {
$loadMore.infiniteScroll("loadNextPage");
window.history.replaceState({}, null, $loadMore.infiniteScroll("getAbsolutePath"));
}
});
}
$("#restart").click(function() {