Skip to content

Commit bd4b9b8

Browse files
swap translate <--> scale transforms (#385)
1 parent 6f82a22 commit bd4b9b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/physics/area.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ export function area(opt: AreaCompOpt = {}): AreaComp {
523523

524524
const transform = this.transform
525525
.clone()
526-
.scale(vec2(this.area.scale ?? 1))
527-
.translate(this.area.offset);
526+
.translate(this.area.offset)
527+
.scale(vec2(this.area.scale ?? 1));
528528

529529
if (localArea instanceof k.Rect) {
530530
const offset = anchorPt(this.anchor || DEF_ANCHOR)

0 commit comments

Comments
 (0)