Skip to content

Commit cbc9365

Browse files
committed
fix scale around relative
1 parent 196dcab commit cbc9365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/matrix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ export default class Matrix {
353353
scaleAroundRelative (sx, sy, center) {
354354
const before = center.applyMatrix(this);
355355

356-
this.sx = sx;
357-
this.sy = sy;
356+
this.sx *= sx;
357+
this.sy *= sy;
358358

359359
const after = center.applyMatrix(this);
360360

0 commit comments

Comments
 (0)