X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Fhit-test-algorithm-impl.cpp;h=ec5cc7cfba2180933a07cf304da8a06b56341e89;hb=d6c5b858d3327f46aee2a4a9c2afc23e12f826da;hp=397f2c5d3278ec339bb242200b2f1926168eb122;hpb=526704fa2ba73d9312b17b97949dda1fab5df6a4;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 397f2c5..ec5cc7c 100644 --- a/dali/internal/event/events/hit-test-algorithm-impl.cpp +++ b/dali/internal/event/events/hit-test-algorithm-impl.cpp @@ -100,8 +100,8 @@ struct ActorTouchableCheck : public HitTestInterface { bool IsActorHittable(Actor* actor) override { - return (actor->GetTouchRequired() || actor->IsTouchFocusable()) && // Does the Application or derived actor type require a touch event? or focusable by touch? - actor->IsHittable(); // Is actor sensitive, visible and on the scene? + return (actor->GetTouchRequired() || actor->GetInterceptTouchRequired() || actor->IsTouchFocusable()) && // Does the Application or derived actor type require a touch event or a intercept touch event? or focusable by touch? + actor->IsHittable(); // Is actor sensitive, visible and on the scene? } bool DescendActorHierarchy(Actor* actor) override @@ -194,8 +194,8 @@ HitActor HitTestWithinLayer(Actor& actor, if(rayTest.ActorTest(actor, rayOrigin, rayDir, hitPointLocal, distance)) { // Calculate z coordinate value in Camera Space. - const Matrix& viewMatrix = renderTask.GetCameraActor()->GetViewMatrix(); - const Vector4& hitDir = Vector4(rayDir.x * distance, rayDir.y * distance, rayDir.z * distance, 0.0f); + const Matrix& viewMatrix = renderTask.GetCameraActor()->GetViewMatrix(); + const Vector4& hitDir = Vector4(rayDir.x * distance, rayDir.y * distance, rayDir.z * distance, 0.0f); const float cameraDepthDistance = (viewMatrix * hitDir).z; // Check if cameraDepthDistance is between clipping plane