mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-23 19:25:54 +00:00
Merge pull request #100 from steveliles/issue96
fixes #96 for Android only - viewBox or nested G elements stifle events
This commit is contained in:
@@ -91,9 +91,10 @@ public class RNSVGGroupShadowNode extends RNSVGPathShadowNode {
|
||||
|
||||
RNSVGVirtualNode node = (RNSVGVirtualNode) child;
|
||||
|
||||
viewTag = node.hitTest(point, ((ViewGroup) view).getChildAt(i), combinedMatrix);
|
||||
View childView = ((ViewGroup) view).getChildAt(i);
|
||||
viewTag = node.hitTest(point, childView, combinedMatrix);
|
||||
if (viewTag != -1) {
|
||||
return node.isResponsible() ? viewTag : view.getId();
|
||||
return (node.isResponsible() || (viewTag != childView.getId())) ? viewTag : view.getId();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user