From fa09067f92035dbf6134631517f9bc6506723dd7 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Thu, 6 Feb 2025 11:08:00 +0800 Subject: [PATCH] Adjust scroll threshold for Back to Top button visibility --- static/js/utils/uiHelpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/utils/uiHelpers.js b/static/js/utils/uiHelpers.js index a646085e..2b5f5022 100644 --- a/static/js/utils/uiHelpers.js +++ b/static/js/utils/uiHelpers.js @@ -130,7 +130,7 @@ export function initBackToTop() { // Show/hide button based on scroll position const toggleBackToTop = () => { - const scrollThreshold = window.innerHeight * 1.5; + const scrollThreshold = window.innerHeight * 0.75; if (window.scrollY > scrollThreshold) { button.classList.add('visible'); } else {