mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: scroll down wrong detection
This commit is contained in:
@@ -2930,13 +2930,16 @@
|
||||
blocks->vec-tree)
|
||||
bottom-reached (fn []
|
||||
(reset! *last-idx idx)
|
||||
(reset! ignore-scroll? false))]
|
||||
(reset! ignore-scroll? false))
|
||||
has-more? (>= (count flat-blocks) (inc idx))]
|
||||
[:div#lazy-blocks
|
||||
(ui/infinite-list
|
||||
"main-content-container"
|
||||
(block-list config segment)
|
||||
{:on-load bottom-reached
|
||||
:threhold 1000})]))
|
||||
:threhold 1000
|
||||
:has-more has-more?
|
||||
:more-text "More"})]))
|
||||
|
||||
(rum/defcs blocks-container <
|
||||
{:init (fn [state]
|
||||
|
||||
Reference in New Issue
Block a user