From 397605da94b92cd1d9b5c92f52bc519259c58c33 Mon Sep 17 00:00:00 2001 From: Taehyub Kim Date: Tue, 14 Mar 2023 21:06:30 +0900 Subject: [PATCH] DragAndDrop : set target coordinates based on screen position (window basis) Change-Id: I5f44ad795f50ecb7539061c196f57ffcdd891c67 --- .../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 68f93be..393169f 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 @@ -340,7 +340,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); @@ -391,7 +391,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