Skip to content

Commit

Permalink
opt code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Aug 1, 2024
1 parent 59b4fc1 commit 5b655d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ ShadowNode::Shared LayoutableShadowNode::findNodeAtPoint(
newPoint = point - transformedFrame.origin -
layoutableShadowNode->getContentOriginOffset(false);
} else {
auto inversionTransform = transform;
Transform inversionTransform;
// Slow path: Handle translation/rotation .. etc.
if (transform.matrix != Transform::Identity().matrix &&
transform.getInversion(inversionTransform)) {
Expand Down

0 comments on commit 5b655d3

Please sign in to comment.