fix:下一篇无法隐藏

This commit is contained in:
羡羡 2023-04-02 16:24:46 +08:00 committed by airbo
parent 4b351a6223
commit 5c896b0a59
1 changed files with 3 additions and 3 deletions

View File

@ -545,14 +545,14 @@ document.addEventListener('scroll', btf.throttle(function () {
if (eventlistner && pagination) {
var centerY = eventlistner.offsetTop + (eventlistner.offsetHeight / 2);
if (document.body.clientWidth > 1300) {
if (centerY < visibleBottom) {
if (centerY < visibleTop) {
pagination.classList.add("show-window");
} else {
pagination.classList.remove("show-window");
}
}
}
}, 200))
}, 200));
// 页面百分比
@ -786,4 +786,4 @@ document.addEventListener('load', function () {
})
window.onscroll = function () {
percent();
};
};