From c7ba7403cc47237a675bb30d9b89a7c0c1c7dd15 Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Tue, 26 Mar 2024 16:39:41 +0900 Subject: [PATCH] [Tizen] actorCoordinates were missing from TapGesture when FeedTouch was used Change-Id: Icfc319322f02920c76923cdaffce3b69354bcf92 --- dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp b/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp index 89c34d5..ceb185f 100644 --- a/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp +++ b/dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp @@ -142,6 +142,11 @@ void TapGestureProcessor::Process(Scene& scene, const TapGestureEvent& tapEvent) { hitTestResults.actor = Dali::Actor(GetFeededActor()); hitTestResults.renderTask = GetFeededRenderTask(); + + Vector2 actorCoords; + GetFeededActor()->ScreenToLocal(*hitTestResults.renderTask.Get(), actorCoords.x, actorCoords.y, tapEvent.point.x, tapEvent.point.y); + hitTestResults.actorCoordinates = actorCoords; + // Check that this actor is still the one that was used for the last touch down ? if(mCurrentTapActor.GetActor() == &GetImplementation(hitTestResults.actor)) { -- 2.7.4