From b9930b57b3a953448aeb89c14b919920c2647de3 Mon Sep 17 00:00:00 2001 From: Taehyub Kim Date: Tue, 14 Mar 2023 21:10:47 +0900 Subject: [PATCH] DragAndDrop : set target coordinates based on screen position (window basis) Change-Id: I984b0c51b56dcb46b147e02c55134579003fc6f5 --- .../drag-and-drop/tizen-wayland/drag-and-drop-impl-ecore-wl2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dali/internal/drag-and-drop/tizen-wayland/drag-and-drop-impl-ecore-wl2.cpp b/dali/internal/drag-and-drop/tizen-wayland/drag-and-drop-impl-ecore-wl2.cpp index 7908c33..e66dc6b 100644 --- a/dali/internal/drag-and-drop/tizen-wayland/drag-and-drop-impl-ecore-wl2.cpp +++ b/dali/internal/drag-and-drop/tizen-wayland/drag-and-drop-impl-ecore-wl2.cpp @@ -366,7 +366,7 @@ bool DragAndDropEcoreWl::CalculateDragEvent(void* event) continue; } - Vector2 position = mDropTargets[i].target.GetProperty(Dali::Actor::Property::POSITION); + Vector2 position = mDropTargets[i].target.GetProperty(Dali::Actor::Property::SCREEN_POSITION); Vector2 size = mDropTargets[i].target.GetProperty(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(Dali::Actor::Property::POSITION); + Vector2 position = mDropTargets[i].target.GetProperty(Dali::Actor::Property::SCREEN_POSITION); Vector2 size = mDropTargets[i].target.GetProperty(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)) -- 2.7.4