feat: multiple blocks select and drag&&drop

This commit is contained in:
Tienson Qin
2025-05-25 07:10:25 +08:00
parent 6f9f610c41
commit 62972bb11c
2 changed files with 6 additions and 2 deletions

View File

@@ -355,7 +355,11 @@
(when (and (> (. js/Math abs dx) (. js/Math abs dy))
(> (. js/Math abs dx) 10))
(dom/set-style! block-container :transform "translateX(0)")
(state/exit-editing-and-set-selected-blocks! [block-container])
(if (contains? (set (state/get-selection-blocks)) block-container)
(state/drop-selection-block! block-container)
(do
(state/clear-edit!)
(state/conj-selection-block! block-container nil)))
(haptics/haptics)
;; (haptics/with-haptics-impact