mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 20:46:09 +02:00
🐛 Fix problem with rotation degree input
This commit is contained in:
parent
6d427cdc9c
commit
172372d4c0
2 changed files with 3 additions and 2 deletions
|
@ -78,10 +78,10 @@
|
|||
(dom/set-value! (dom/get-target event) new-value))
|
||||
|
||||
(and wrap-value? (num? max-val) (num? min-val) (= value max-val) up?)
|
||||
(dom/set-value! (dom/get-target event) min-val)
|
||||
(dom/set-value! (dom/get-target event) (dec min-val))
|
||||
|
||||
(and wrap-value? (num? min-val) (num? max-val) (= value min-val) down?)
|
||||
(dom/set-value! (dom/get-target event) max-val))))))
|
||||
(dom/set-value! (dom/get-target event) (inc max-val)))))))
|
||||
|
||||
handle-key-down
|
||||
(mf/use-callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue