actorCoordinates were missing from TapGesture when FeedTouch was used 74/308474/2
authorjoogab.yun <joogab.yun@samsung.com>
Tue, 26 Mar 2024 07:39:41 +0000 (16:39 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Tue, 26 Mar 2024 07:42:00 +0000 (07:42 +0000)
Change-Id: Icfc319322f02920c76923cdaffce3b69354bcf92

dali/internal/event/events/tap-gesture/tap-gesture-processor.cpp

index 89c34d5..ceb185f 100644 (file)
@@ -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))
           {