X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Fhit-test-algorithm-impl.cpp;h=49df17cfbd5b41b930c480ac90f65a886b898ad2;hb=b45c4b2bd224350c488d6f103eb786308f3c235b;hp=f8497563c86f705fd79b4e2c41ccd5123e8eadee;hpb=27619bbc4c1d443e89a6cdd116e544f6d9657fa4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/hit-test-algorithm-impl.cpp b/dali/internal/event/events/hit-test-algorithm-impl.cpp index f849756..49df17c 100644 --- a/dali/internal/event/events/hit-test-algorithm-impl.cpp +++ b/dali/internal/event/events/hit-test-algorithm-impl.cpp @@ -183,8 +183,8 @@ HitActor HitTestWithinLayer( Actor& actor, } } - // If there is a stencil on this layer and we've also registered a hit, then don't both searching any children - if ( stencilHit && hit.actor ) + // If we are a stencil (or a child of a stencil) and we have already ascertained that the stencil has been hit then there is no need to hit-test the children of this stencil-actor + if ( isStencil && stencilHit ) { return hit; }