Skip to content

Commit

Permalink
Fixed an issue where the title in NavigationExperimentalHeader would …
Browse files Browse the repository at this point in the history
…block touches for the left component

Summary:There was an issue where the title component could overlap the left component and it would block the left component from receiving touches.

I only stumbled across this because we have a default title component which stretches most of the width and it was covering the edge of the left component. I think left/right components are more likely to be actionable than the title component so they should take priority in the touch order (ie. be rendered last).
Closes #6618

Differential Revision: D3144191

fb-gh-sync-id: 9ccd31714b2401d02eaaf4b5b24ed6afb60041c7
fbshipit-source-id: 9ccd31714b2401d02eaaf4b5b24ed6afb60041c7
  • Loading branch information
Morgan Pretty authored and Facebook Github Bot 0 committed Apr 6, 2016
1 parent 5162eb3 commit 86d5c52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
return null;
}

const pointerEvents = offset !== 0 || isStale ? 'none' : 'auto';
const pointerEvents = offset !== 0 || isStale ? 'none' : 'box-none';
return (
<Animated.View
pointerEvents={pointerEvents}
Expand Down

0 comments on commit 86d5c52

Please sign in to comment.