Merge pull request #5088 from logseq/gesture-support-on-block

Gesture support on mobile
This commit is contained in:
Tienson Qin
2022-05-30 17:48:47 +08:00
committed by GitHub
22 changed files with 508 additions and 66 deletions

View File

@@ -962,9 +962,7 @@
(defn select-block!
[block-uuid]
(let [blocks (js/document.getElementsByClassName (str block-uuid))]
(when (seq blocks)
(state/exit-editing-and-set-selected-blocks! blocks))))
(block-handler/select-block! block-uuid))
(defn- compose-copied-blocks-contents
[repo block-ids]