Skip to content

Commit 31ad4a8

Browse files
committed
chore: Renamed transform reference
1 parent ca07729 commit 31ad4a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui-canvas/canvas.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,10 +1458,10 @@ export class Canvas implements ICanvas {
14581458
const invertedTransform = CGAffineTransformInvert(currentMatrix.mTransform);
14591459
// Screen scale is excluded because it causes problems for other cases (e.g. bitmaps)
14601460
// Android canvas scale has to be re-applied after setMatrix() call too so this is going to make iOS behavior similar
1461-
const scaleTransform = CGAffineTransformMake(1, 0, 0, -1, 0, this.mHeight);
1461+
const flipTransform = CGAffineTransformMake(1, 0, 0, -1, 0, this.mHeight);
14621462

14631463
CGContextConcatCTM(ctx, invertedTransform);
1464-
CGContextConcatCTM(ctx, scaleTransform);
1464+
CGContextConcatCTM(ctx, flipTransform);
14651465
CGContextConcatCTM(ctx, matrix.mTransform);
14661466
}
14671467
getMatrix(): Matrix {

0 commit comments

Comments
 (0)