disable swipe gesture when scrolling mirrorcode editor

This commit is contained in:
llcc
2022-05-09 15:50:28 +08:00
parent 01295783f2
commit 17eb19d249

View File

@@ -264,6 +264,9 @@
(state/clear-selection!)
(when-let [block (and (:block/uuid config) (into {} (db/get-block-by-uuid (:block/uuid config))))]
(state/set-editing! id (.getValue editor) block nil false))))
(.addEventListener element "touchstart"
(fn [e]
(.stopPropagation e)))
(.save editor)
(.refresh editor)
(when default-open?