mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
fix bug with inspector clicking
Summary: Previously, if you were already inspecting an element, touching again would select a completely different element because the touch position was calculated relative to the current overlay. This fixes it. @public Test Plan: Open the inspector, click around, verify that every click selects the thing you clicked on.
This commit is contained in:
@@ -59,7 +59,7 @@ var InspectorOverlay = React.createClass({
|
||||
? 'flex-start'
|
||||
: 'flex-end';
|
||||
|
||||
content.push(<View style={[styles.frame, this.state.frame]} />);
|
||||
content.push(<View pointerEvents="none" style={[styles.frame, this.state.frame]} />);
|
||||
content.push(<ElementProperties hierarchy={this.state.hierarchy} />);
|
||||
}
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user