fix: drag && drop

This commit is contained in:
Tienson Qin
2025-06-04 03:28:30 +08:00
parent f0c18d33b1
commit 536837a98c
2 changed files with 52 additions and 41 deletions

View File

@@ -376,7 +376,10 @@
(reset! *touch-start nil))))))
(defn on-touch-cancel
[_e]
[e]
(reset! *swipe nil)
(reset! *swiped? nil)
(reset! *touch-start nil))
(reset! *touch-start nil)
(let [target (.-target e)
block-container (util/rec-get-node target "ls-block")]
(dom/set-style! block-container :transform "translateX(0)")))