Intersection logic has been modified to allow boundary of drop targets 22/303722/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 4 Jan 2024 01:17:36 +0000 (10:17 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 4 Jan 2024 01:17:36 +0000 (10:17 +0900)
Change-Id: I40d8731cd564191db67f9fc36a9256416541f64c

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

index d826105..65b163c 100644 (file)
@@ -54,7 +54,7 @@ static constexpr int32_t INVALID_ECORE_WL2_WINDOW_ID = -1;
 
 static bool IsIntersection(int px, int py, int tx, int ty, int tw, int th)
 {
-  if(px > tx && py > ty && px < (tx + tw) && py < (ty + th))
+  if(px >= tx && py >= ty && px <= (tx + tw) && py <= (ty + th))
   {
     return true;
   }