0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

🐛 Fix rotation when set to 0 again

This commit is contained in:
Andrés Moya 2022-01-27 14:39:33 +01:00 committed by Andrey Antukh
parent d83b362c9f
commit 1b76ed97e1
2 changed files with 3 additions and 3 deletions

View file

@ -285,6 +285,8 @@
(cond-> transform
(-> (assoc :transform transform)
(assoc :transform-inverse transform-inverse)))
(cond-> (not transform)
(dissoc :transform :transform-inverse))
(assoc :selrect selrect)
(assoc :points points)
(assoc :rotation rotation))))

View file

@ -159,9 +159,7 @@
(when (or up? down?)
(set-delta event up? down?))
(when enter?
(let [new-value (parse-value)]
(apply-value new-value)
(dom/blur! input-node)))
(dom/blur! input-node))
(when esc?
(update-input value-str)))))