You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: setting invMatrix during setTransforms for iOS (#2810)
# Summary
Fixes: #2809
1. Fix `setTransform` to correctly update `_invmatrix` for hit testing.
Previously, the `setTransforms` setter in `RNSVGNode` updated the
`_matrix` property but did not recompute the `_invmatrix`.
As a result, hit testing on iOS could become inaccurate when transforms
were applied via Reanimated’s `animatedProps`, because the visual
transform `_matrix` and the cached inverse `_invmatrix` were out of
sync.
This PR modifies `setTransforms` to update `_matrix` through its setter
ensuring that `_invmatrix` is recomputed properly whenever the
transforms changes.
2. Remove unused `invTransform` from `VirtualView.java`.
## Test Plan
Run example from issue #2809
0 commit comments