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:
Will Miao
2026-06-26 19:36:08 +08:00
parent 3d207b6744
commit 8a6d23f9c7

View File

@@ -384,9 +384,12 @@ export function initBackToTop() {
}
};
// Scroll to top
// Smooth scroll to top
button.addEventListener('click', () => {
scrollContainer.scrollTop = 0;
scrollContainer.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Listen for scroll events on the scrollable container