From 5c896b0a59cba2b5060030db7fdff0bc0556d1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=A1=E7=BE=A1?= <64968400+xyhcode@users.noreply.github.com> Date: Sun, 2 Apr 2023 16:24:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8B=E4=B8=80=E7=AF=87=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/blogex.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +};