mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
perf: use virtualized list instead of our own ui/infinite-list
The benefits are: 1. less journals to render, so less memory, faster editor experience 2. our old implementation is buggy in some platforms
This commit is contained in:
@@ -541,14 +541,6 @@
|
||||
#js {:behavior (if animate? "smooth" "auto")
|
||||
:block "center"}))))))
|
||||
|
||||
#?(:cljs
|
||||
(defn bottom-reached?
|
||||
[node threshold]
|
||||
(let [full-height (gobj/get node "scrollHeight")
|
||||
scroll-top (gobj/get node "scrollTop")
|
||||
client-height (gobj/get node "clientHeight")]
|
||||
(<= (- full-height scroll-top client-height) threshold))))
|
||||
|
||||
#?(:cljs
|
||||
(defn link?
|
||||
[node]
|
||||
|
||||
Reference in New Issue
Block a user