Skip to content

Commit

Permalink
fix(ios): simplify logic and refine todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyunong committed Dec 2, 2024
1 parent 1c6ba75 commit 8a780e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ - (void)measureInAppWindow:(NSNumber *)componentTag
double locationX = [params[HippyXOnScreenKey] doubleValue];
double locationY = [params[HippyYOnScreenKey] doubleValue];
UIView* hitView = [rootView hitTest:{locationX, locationY} withEvent:nil];
// TODO: not a hippp view
if (hitView != nil && hitView.hippyTag) {
// TODO: The hitView may not a hippy view (such as a sub native view). Should trace to hippy view.
if (hitView.hippyTag) {
[locationDict setObject:hitView.hippyTag forKey:HippyTagKey];
}
callback(@[locationDict]);
Expand Down

0 comments on commit 8a780e0

Please sign in to comment.