0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Dont update values outside of 0..1 (e.g.: 20)

This commit is contained in:
Florian Schroedl 2024-08-05 10:51:35 +02:00
parent 1f88c8288a
commit c29024bd62

View file

@ -94,7 +94,8 @@
:attrs ctt/border-radius-keys}))
(defn update-opacity [value shape-ids]
(dch/update-shapes shape-ids #(assoc % :opacity value)))
(when (<= 0 value 1)
(dch/update-shapes shape-ids #(assoc % :opacity value))))
(defn update-rotation [value shape-ids]
(ptk/reify ::update-shape-dimensions