Inspector Tools issue when view are transformed in Fabric #45502
Labels
Help Wanted
Issues ideal for external contributors.
Resolution: Fixed
A PR that fixes this issue has been merged.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
When Views are transformed (as seen in the example with
Vertical Inversion
) and try to inspect element, wrong elements is being inspected becausefindNodeAtPoint
in Fabric is not accounting for transform.This is happening in both iOS and Android
Steps to reproduce
RCT_NEW_ARCH_ENABLED=1 pod install
Cmd + Ctrl + Z
to open Developer MenuToggle Element Inspector
Item 1
Expected:
Item 1
should be highlightedActual:
Item 3
is hightlightedReact Native Version
Any Version that has Fabric
Affected Platforms
Runtime - Android, Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/realsoelynn/rn-inspectortools-transform-related-reproducer
Screenshots and Videos
Inspector-ParentView.Transform.Issue.mov
The text was updated successfully, but these errors were encountered: