From 643ba56768804d51cd55b63670e2b9fd23bdd4ae Mon Sep 17 00:00:00 2001 From: Yuyao Huang Date: Sat, 9 May 2026 14:08:22 +0800 Subject: [PATCH] fix: skip initial handleScrollFocus call to prevent position override Remove immediate handleScrollFocus() call in initScrollFocus(). Only actual user scroll events will trigger position saving now. --- static/js/tasks.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/static/js/tasks.js b/static/js/tasks.js index f0d68b5..576df7b 100644 --- a/static/js/tasks.js +++ b/static/js/tasks.js @@ -159,8 +159,6 @@ function initScrollFocus() { scrollView.removeEventListener("scroll", handleScrollFocus); scrollView.addEventListener("scroll", handleScrollFocus); - - handleScrollFocus(); } function handleScrollFocus() {