mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
fix: use better option for scrolling into moving blocks
This commit is contained in:
committed by
Tienson Qin
parent
4ccc85bdde
commit
48c4616f88
@@ -1658,7 +1658,7 @@
|
||||
:data [block]}]
|
||||
(db/refresh! repo opts)))
|
||||
(when-let [block-node (util/get-first-block-by-id block-id)]
|
||||
(.scrollIntoView block-node #js {:behavior "smooth" :block "center"}))))))
|
||||
(.scrollIntoView block-node #js {:behavior "smooth" :block "nearest"}))))))
|
||||
|
||||
;; selections
|
||||
(defn on-tab
|
||||
|
||||
Reference in New Issue
Block a user