mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +00:00
Merge pull request #928 from alexlau811/master
[ios] Fix active filtering in hitTest to return the last (top-most) view
This commit is contained in:
@@ -169,7 +169,7 @@
|
||||
NSPredicate *const anyActive = [NSPredicate predicateWithFormat:@"active == TRUE"];
|
||||
NSArray *const filtered = [self.subviews filteredArrayUsingPredicate:anyActive];
|
||||
if ([filtered count] != 0) {
|
||||
return [filtered.firstObject hitTest:transformed withEvent:event];
|
||||
return [filtered.lastObject hitTest:transformed withEvent:event];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user