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(macOS): add transform3D property to RCTUIView with anchor point and hit testing fixes
On macOS, AppKit resets layer.transform to identity during its display
cycle because NSView has no built-in transform property. This adds a
transform3D property to RCTUIView that persists the transform and
re-applies it in updateLayer.
Also fixes two related issues in the compat layer:
- Compensates for macOS layer.anchorPoint defaulting to {0,0} instead
of {0.5, 0.5}, so transforms apply from the view's center.
- Uses CALayer coordinate conversion in hitTest: and
RCTUIViewHitTestWithEvent, which correctly accounts for layer.transform
(NSView's convertPoint:fromView: does not).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments