mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
enhance(pdf): UI lag for the case of large highlights data
This commit is contained in:
@@ -844,8 +844,10 @@
|
||||
(when (= :completed (:status loader-state))
|
||||
(p/catch
|
||||
(when-not (:error hls-state)
|
||||
(pdf-assets/persist-hls-data$
|
||||
pdf-current (:latest-hls hls-state) (:extra hls-state)))
|
||||
(p/do!
|
||||
(p/delay 100)
|
||||
(pdf-assets/persist-hls-data$
|
||||
pdf-current (:latest-hls hls-state) (:extra hls-state))))
|
||||
|
||||
;; write hls file error
|
||||
(fn [e]
|
||||
|
||||
Reference in New Issue
Block a user