diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index eb7f7a55..659f3dd3 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -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(); -}; \ No newline at end of file +};