0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix problem with cursor when shapes flipped

This commit is contained in:
alonso.torres 2024-04-03 10:44:00 +02:00
parent 5fd72cf9d9
commit 9c36d77573

View file

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