🐛 Fix undo stacking when changing color from color-picker

This commit is contained in:
alonso.torres 2021-10-28 16:18:28 +02:00
parent 0e76aa0265
commit 9437cc1806
9 changed files with 131 additions and 73 deletions

View file

@ -288,7 +288,8 @@
(-> event get-target (.setPointerCapture (.-pointerId event))))
(defn release-pointer [event]
(-> event get-target (.releasePointerCapture (.-pointerId event))))
(when (.-pointerId event)
(-> event get-target (.releasePointerCapture (.-pointerId event)))))
(defn get-root []
(query globals/document "#app"))