-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Fix hitTest for auto #501
Conversation
boopathi
commented
Mar 30, 2015
- Returns matching subview hitTest or super hitTest if no match found. Should fix TextInput inside View doesn't work #99 .
@@ -114,26 +114,35 @@ - (void)setPointerEvents:(RCTPointerEvents)pointerEvents | |||
} | |||
} | |||
|
|||
- (UIView *)getSubviewHitTestView:(CGPoint)point withEvent:(UIEvent *)event |
There was a problem hiding this comment.
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.
326f7e6
to
df15a3f
Compare
@@ -16,6 +16,20 @@ | |||
|
|||
static const RCTBorderSide RCTBorderSideCount = 4; | |||
|
|||
UIView* getSubviewHitTestView(UIView *view, CGPoint point, UIEvent *event) |
There was a problem hiding this comment.
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)
…if no match found
df15a3f
to
643087b
Compare
Thanks for that, your diff has already been merged internally and should be out on the next sync. |
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.
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.
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.