mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05: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
|
@ -25,6 +25,7 @@
|
|||
- Fix problem with middle mouse button press moving the canvas when not moving mouse [#717](https://github.com/penpot/penpot/issues/717)
|
||||
- Fix problem with masks interactions outside bounds [#718](https://github.com/penpot/penpot/issues/718)
|
||||
- Fix issues with Alt key in distance measurement [#672](https://github.com/penpot/penpot/issues/672)
|
||||
- Fix problem with rotation degree input [#741](https://github.com/penpot/penpot/issues/741)
|
||||
|
||||
### :heart: Community contributions by (Thank you!)
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue