🐛 Fix issue with shift+select to deselect shapes

This commit is contained in:
alonso.torres
2022-03-30 13:00:22 +02:00
parent 0392a1649f
commit 586bd13cc2
5 changed files with 56 additions and 37 deletions

View File

@@ -693,3 +693,13 @@
acc)))
acc))))))
(defn toggle-selection
([set value]
(toggle-selection set value false))
([set value toggle?]
(if-not toggle?
(conj (ordered-set) value)
(if (contains? set value)
(disj set value)
(conj set value)))))