🐛 Fix problem with rotation degree input

This commit is contained in:
alonso.torres 2021-03-09 18:18:29 +01:00
parent 6d427cdc9c
commit 172372d4c0
2 changed files with 3 additions and 2 deletions

View file

@ -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