mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
Adjust scroll threshold for Back to Top button visibility
This commit is contained in:
@@ -130,7 +130,7 @@ export function initBackToTop() {
|
|||||||
|
|
||||||
// Show/hide button based on scroll position
|
// Show/hide button based on scroll position
|
||||||
const toggleBackToTop = () => {
|
const toggleBackToTop = () => {
|
||||||
const scrollThreshold = window.innerHeight * 1.5;
|
const scrollThreshold = window.innerHeight * 0.75;
|
||||||
if (window.scrollY > scrollThreshold) {
|
if (window.scrollY > scrollThreshold) {
|
||||||
button.classList.add('visible');
|
button.classList.add('visible');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user