From b9928a150c8d9541dbdc2e3ff4effc17ab2a3fd5 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 16 Dec 2025 21:19:02 +0800 Subject: [PATCH] fix(mobile): press home button in the root tab doesn't scroll to top --- src/main/mobile/bottom_tabs.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/mobile/bottom_tabs.cljs b/src/main/mobile/bottom_tabs.cljs index fc6c42de51..667f545770 100644 --- a/src/main/mobile/bottom_tabs.cljs +++ b/src/main/mobile/bottom_tabs.cljs @@ -120,9 +120,10 @@ (not= @*current-tab tab) (do (reset! *current-tab tab) - (mobile-state/set-tab! tab) - (when (= "home" tab) - (util/scroll-to-top false)))))) + (mobile-state/set-tab! tab)) + + (= @*current-tab tab "home") + (util/scroll-to-top false)))) (add-watch mobile-state/*tab ::select-tab (fn [_ _ _old new]