DragAndDrop : set target coordinates based on screen position (window basis) 39/289839/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 14 Mar 2023 12:06:30 +0000 (21:06 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 14 Mar 2023 12:06:30 +0000 (21:06 +0900)
Change-Id: I5f44ad795f50ecb7539061c196f57ffcdd891c67

dali/internal/drag-and-drop/tizen-wayland/drag-and-drop-impl-ecore-wl2.cpp

index 68f93be..393169f 100644 (file)
@@ -340,7 +340,7 @@ bool DragAndDropEcoreWl::CalculateDragEvent(void* event)
       continue;
     }
 
-    Vector2 position      = mDropTargets[i].target.GetProperty<Vector2>(Dali::Actor::Property::POSITION);
+    Vector2 position      = mDropTargets[i].target.GetProperty<Vector2>(Dali::Actor::Property::SCREEN_POSITION);
     Vector2 size          = mDropTargets[i].target.GetProperty<Vector2>(Dali::Actor::Property::SIZE);
     bool    currentInside = IsIntersection(ev->x, ev->y, position.x, position.y, size.width, size.height);
 
@@ -391,7 +391,7 @@ bool DragAndDropEcoreWl::CalculateViewRegion(void* event)
       continue;
     }
 
-    Vector2 position = mDropTargets[i].target.GetProperty<Vector2>(Dali::Actor::Property::POSITION);
+    Vector2 position = mDropTargets[i].target.GetProperty<Vector2>(Dali::Actor::Property::SCREEN_POSITION);
     Vector2 size     = mDropTargets[i].target.GetProperty<Vector2>(Dali::Actor::Property::SIZE);
     // If the drop position is in the target object region, request drop data to the source object
     if(IsIntersection(ev->x, ev->y, position.x, position.y, size.width, size.height))