Skip to content

Commit

Permalink
Removed redundant object
Browse files Browse the repository at this point in the history
  • Loading branch information
duncandoit authored and mikerreed committed Apr 29, 2022
1 parent daaf22b commit c4098c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Views/rive_renderer_view.mm
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ - (CGPoint)artboardLocationFromTouchLocation:(CGPoint)touchLocation
rive::Mat2D inverse = forward.invertOrIdentity();

rive::Vec2D frameLocation(touchLocation.x, touchLocation.y);
rive::Vec2D convertedLocation = inverse * rive::Vec2D(frameLocation.x(), frameLocation.y());
rive::Vec2D convertedLocation = inverse * frameLocation;

return CGPointMake(convertedLocation.x(), convertedLocation.y());
}
Expand Down

0 comments on commit c4098c0

Please sign in to comment.