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:
parent
1f88c8288a
commit
c29024bd62
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue