mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Fix problem with cursor when shapes flipped
This commit is contained in:
parent
5fd72cf9d9
commit
9c36d77573
1 changed files with 3 additions and 3 deletions
|
@ -335,8 +335,8 @@
|
|||
|
||||
flip-x (get shape :flip-x)
|
||||
flip-y (get shape :flip-y)
|
||||
half-flip? (or (and (some? flip-x) (not (some? flip-y)))
|
||||
(and (some? flip-y) (not (some? flip-x))))]
|
||||
half-flip? (or (and flip-x (not flip-y))
|
||||
(and flip-y (not flip-x)))]
|
||||
|
||||
(when (and (not ^boolean read-only?)
|
||||
(not (:transforming shape))
|
||||
|
@ -357,7 +357,7 @@
|
|||
(and ^boolean half-flip?
|
||||
(or (= position :top-right)
|
||||
(= position :bottom-left)))
|
||||
(- rotation 90)
|
||||
(+ rotation 90)
|
||||
|
||||
:else
|
||||
rotation)
|
||||
|
|
Loading…
Reference in a new issue