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:
Tienson Qin
2024-06-17 09:25:33 +08:00
parent a9b84a5614
commit 2ba01c7cef
27 changed files with 32 additions and 96 deletions

View File

@@ -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]