improve cursor scroll

This commit is contained in:
llcc
2022-05-05 09:41:28 +08:00
parent d8fc4c66ce
commit 40740ac4dc
4 changed files with 20 additions and 16 deletions

View File

@@ -1681,7 +1681,8 @@
(move-nodes blocks))
(when-let [input-id (state/get-edit-input-id)]
(when-let [input (gdom/getElement input-id)]
(.focus input))))
(.focus input)
(js/setTimeout #(util/scroll-editor-cursor input) 100))))
(let [ids (state/get-selection-block-ids)]
(when (seq ids)
(let [lookup-refs (map (fn [id] [:block/uuid id]) ids)