mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
When both dot-x and dot-y were negative (both axes flipped), (update :rotation -) was applied twice which cancelled itself out, leaving rotation unchanged. The intended behaviour is to negate rotation once per flip, but flipping both axes simultaneously is equivalent to a 180° rotation and should not alter the stored angle. Replaced the two separate conditional rotation updates with a single one gated on (not= (neg? dot-x) (neg? dot-y)) so the rotation is negated only when exactly one axis is flipped. Signed-off-by: Andrey Antukh <niwi@niwi.nz>