mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49: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-x (get shape :flip-x)
|
||||||
flip-y (get shape :flip-y)
|
flip-y (get shape :flip-y)
|
||||||
half-flip? (or (and (some? flip-x) (not (some? flip-y)))
|
half-flip? (or (and flip-x (not flip-y))
|
||||||
(and (some? flip-y) (not (some? flip-x))))]
|
(and flip-y (not flip-x)))]
|
||||||
|
|
||||||
(when (and (not ^boolean read-only?)
|
(when (and (not ^boolean read-only?)
|
||||||
(not (:transforming shape))
|
(not (:transforming shape))
|
||||||
|
@ -357,7 +357,7 @@
|
||||||
(and ^boolean half-flip?
|
(and ^boolean half-flip?
|
||||||
(or (= position :top-right)
|
(or (= position :top-right)
|
||||||
(= position :bottom-left)))
|
(= position :bottom-left)))
|
||||||
(- rotation 90)
|
(+ rotation 90)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
rotation)
|
rotation)
|
||||||
|
|
Loading…
Add table
Reference in a new issue