[Tizen] Intersection logic has been modified to allow boundary of drop targets 11/303811/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 4 Jan 2024 01:17:36 +0000 (10:17 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Fri, 5 Jan 2024 07:01:21 +0000 (16:01 +0900)
Change-Id: I40d8731cd564191db67f9fc36a9256416541f64c

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

index d826105535a5a3bc4e3dffca90a83c3fc113ae10..65b163c80b55fe18bbbd26d9b8c906b53c681624 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;
   }