DragAndDrop : set target coordinates based on screen position (window basis) 41/289841/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 14 Mar 2023 12:10:47 +0000 (21:10 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 14 Mar 2023 12:10:49 +0000 (21:10 +0900)
Change-Id: I984b0c51b56dcb46b147e02c55134579003fc6f5

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

index 7908c33..e66dc6b 100644 (file)
@@ -366,7 +366,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);
 
@@ -417,7 +417,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))