Skip to content

Commit

Permalink
fix scale around relative
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Feb 14, 2017
1 parent 196dcab commit cbc9365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ export default class Matrix {
scaleAroundRelative (sx, sy, center) {
const before = center.applyMatrix(this);

this.sx = sx;
this.sy = sy;
this.sx *= sx;
this.sy *= sy;

const after = center.applyMatrix(this);

Expand Down

0 comments on commit cbc9365

Please sign in to comment.