From 8a6d23f9c75910d1d92a9b1cf53b8a77671865db Mon Sep 17 00:00:00 2001 From: Will Miao Date: Fri, 26 Jun 2026 19:36:08 +0800 Subject: [PATCH] Revert "fix(ui): replace smooth scroll with instant for back-to-top to avoid VirtualScroller conflict" This reverts commit a429e6b1c3f18c9b2935a3f2f0128bd33e59219f. --- static/js/utils/uiHelpers.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/utils/uiHelpers.js b/static/js/utils/uiHelpers.js index 09e231d3..961d1042 100644 --- a/static/js/utils/uiHelpers.js +++ b/static/js/utils/uiHelpers.js @@ -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