Skip to content

Commit

Permalink
Fixed variable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hangover3832 committed Dec 15, 2023
1 parent 29eaf84 commit aeaf98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ui/tool/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ const selectTransformTool = () =>
const lscursor = m.transformPoint({x: sx, y: sy});

const xs = lscursor.x / scaling.handle.x;
const xy = lscursor.y / scaling.handle.y;
const ys = lscursor.y / scaling.handle.y;

let xscale = 1;
let yscale = 1;
Expand All @@ -429,7 +429,7 @@ const selectTransformTool = () =>
xscale = xs;
yscale = ys;
} else {
xscale = yscale = Math.max(xs, xy);
xscale = yscale = Math.max(xs, ys);
}

state.selected.scale = {x: xscale, y: yscale};
Expand Down

0 comments on commit aeaf98a

Please sign in to comment.