diff --git a/src/pixi/InteractionManager.js b/src/pixi/InteractionManager.js index c6a8da2..5080867 100644 --- a/src/pixi/InteractionManager.js +++ b/src/pixi/InteractionManager.js @@ -63,25 +63,27 @@ { var child = children[i]; - // push all interactive bits - if(child.interactive) - { - iParent.interactiveChildren = true; - //child.__iParent = iParent; - this.interactiveItems.push(child); - - if(child.children.length > 0) + if(child.visible) { + // push all interactive bits + if(child.interactive) { - this.collectInteractiveSprite(child, child); + iParent.interactiveChildren = true; + //child.__iParent = iParent; + this.interactiveItems.push(child); + + if(child.children.length > 0) + { + this.collectInteractiveSprite(child, child); + } } - } - else - { - child.__iParent = null; - - if(child.children.length > 0) + else { - this.collectInteractiveSprite(child, iParent); + child.__iParent = null; + + if(child.children.length > 0) + { + this.collectInteractiveSprite(child, iParent); + } } } }