From 9c36d775732deefb1465a0228c37ba7d9acee6ef Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 3 Apr 2024 10:44:00 +0200 Subject: [PATCH] :bug: Fix problem with cursor when shapes flipped --- frontend/src/app/main/ui/workspace/viewport/selection.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport/selection.cljs b/frontend/src/app/main/ui/workspace/viewport/selection.cljs index ed91e2b6c..8d04c1ac2 100644 --- a/frontend/src/app/main/ui/workspace/viewport/selection.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/selection.cljs @@ -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)