mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-27 05:11:15 -03:00
Revert "fix(ui): replace smooth scroll with instant for back-to-top to avoid VirtualScroller conflict"
This reverts commit a429e6b1c3.
This commit is contained in:
@@ -384,9 +384,12 @@ export function initBackToTop() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Scroll to top
|
// Smooth scroll to top
|
||||||
button.addEventListener('click', () => {
|
button.addEventListener('click', () => {
|
||||||
scrollContainer.scrollTop = 0;
|
scrollContainer.scrollTo({
|
||||||
|
top: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Listen for scroll events on the scrollable container
|
// Listen for scroll events on the scrollable container
|
||||||
|
|||||||
Reference in New Issue
Block a user