fixes #96 for Android only - viewBox or nested G elements stifle events

This commit is contained in:
steve
2016-08-04 00:55:07 +01:00
parent 5482a667ca
commit 22b231152d
@@ -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();
}
}