Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hitTest for auto #501

Closed
wants to merge 1 commit into from
Closed

Conversation

boopathi
Copy link
Contributor

@@ -114,26 +114,35 @@ - (void)setPointerEvents:(RCTPointerEvents)pointerEvents
}
}

- (UIView *)getSubviewHitTestView:(CGPoint)point withEvent:(UIEvent *)event
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make it a C function? Pass the UIView * as a parameter.

@boopathi boopathi force-pushed the fix-hitTestAuto branch 2 times, most recently from 326f7e6 to df15a3f Compare March 30, 2015 17:30
@@ -16,6 +16,20 @@

static const RCTBorderSide RCTBorderSideCount = 4;

UIView* getSubviewHitTestView(UIView *view, CGPoint point, UIEvent *event)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would give it a better name, and make it a static inline function.

NS_INLINE UIView *RCTViewHitTest(UIView *view, CGPoint point, UIEvent *event)

@tadeuzagallo
Copy link
Contributor

Thanks for that, your diff has already been merged internally and should be out on the next sync.

vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 13, 2015
Summary:
- Returns matching subview hitTest or super hitTest if no match found. Should fix facebook#99 .

Closes facebook#501
Github Author: Boopathi Rajaa <me@boopathi.in>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 14, 2015
Summary:
- Returns matching subview hitTest or super hitTest if no match found. Should fix facebook#99 .

Closes facebook#501
Github Author: Boopathi Rajaa <me@boopathi.in>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 15, 2015
Summary:
- Returns matching subview hitTest or super hitTest if no match found. Should fix facebook#99 .

Closes facebook#501
Github Author: Boopathi Rajaa <me@boopathi.in>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
jfrolich pushed a commit to jfrolich/react-native that referenced this pull request Apr 22, 2020
ayushjainrksh referenced this pull request in MLH-Fellowship/react-native Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextInput inside View doesn't work
3 participants