Adjust scroll threshold for Back to Top button visibility

This commit is contained in:
Will Miao
2025-02-06 11:08:00 +08:00
parent dc565feca6
commit fa09067f92

View File

@@ -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 {