mirror of https://github.com/penpot/penpot.git
Dont update values outside of 0..1 (e.g.: 20)
This commit is contained in:
parent
1f88c8288a
commit
c29024bd62
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue