mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
fix: preserve the scroll position when navigating pages
This commit is contained in:
@@ -148,6 +148,7 @@
|
||||
(when @*scroll-timer
|
||||
(js/clearTimeout @*scroll-timer))
|
||||
(state/set-state! :ui/scrolling? true)
|
||||
(state/save-scroll-position! (util/scroll-top))
|
||||
(reset! *scroll-timer (js/setTimeout
|
||||
(fn [] (state/set-state! :ui/scrolling? false)) 500)))
|
||||
false)))
|
||||
|
||||
Reference in New Issue
Block a user