Commit 10649ac4 authored by Tong Mu's avatar Tong Mu Committed by Flutter GitHub Bot

Fix TransformLayer with perspective transform (#49441)

parent 6a7fac22
......@@ -1655,9 +1655,8 @@ class TransformLayer extends OffsetLayer {
}
if (_invertedTransform == null)
return null;
final Vector4 vector = Vector4(localPosition.dx, localPosition.dy, 0.0, 1.0);
final Vector4 result = _invertedTransform.transform(vector);
return Offset(result[0], result[1]);
return MatrixUtils.transformPoint(_invertedTransform, localPosition);
}
@override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment