fix:下一篇无法隐藏
This commit is contained in:
parent
4b351a6223
commit
5c896b0a59
|
@ -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();
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue