mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
fix(mobile): press home button in the root tab doesn't scroll to top
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user