mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
Remove wrong lock support on resize-rect func.
This commit is contained in:
parent
6345cfd91a
commit
3cd3230342
1 changed files with 3 additions and 6 deletions
|
@ -269,12 +269,9 @@
|
|||
(defn- resize-rect
|
||||
"A specialized function for absolute resize
|
||||
for rect-like shapes."
|
||||
[shape {:keys [x y lock] :as pos}]
|
||||
(if lock
|
||||
(-> (assoc shape :x2 x :y2 y)
|
||||
(equalize-sides)
|
||||
(normalize-shape))
|
||||
(normalize-shape (assoc shape :x2 x :y2 y))))
|
||||
[shape {:keys [x y] :as pos}]
|
||||
(-> (assoc shape :x2 x :y2 y)
|
||||
(normalize-shape)))
|
||||
|
||||
(defn- resize-circle
|
||||
"A specialized function for absolute resize
|
||||
|
|
Loading…
Add table
Reference in a new issue