diff --git a/arc-core/src/arc/scene/Group.java b/arc-core/src/arc/scene/Group.java index adc9a65c..80c7b97e 100644 --- a/arc-core/src/arc/scene/Group.java +++ b/arc-core/src/arc/scene/Group.java @@ -195,7 +195,7 @@ public Element hit(float x, float y, boolean touchable){ for(int i = children.size - 1; i >= 0; i--){ Element child = childrenArray[i]; //TODO: this optimization may be incorrect, needs further testing. - if(!child.visible || (cullingArea != null && !cullingArea.overlaps(child.x + child.translation.x, child.y + child.translation.y, child.width, child.height))) continue; + if(!child.visible || (child.cullable && cullingArea != null && !cullingArea.overlaps(child.x + child.translation.x, child.y + child.translation.y, child.width, child.height))) continue; child.parentToLocalCoordinates(point.set(x, y)); Element hit = child.hit(point.x, point.y, touchable); if(hit != null) return hit;