genlist : fix wrong geometry check in item focus 25/283425/2
authorEverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Wed, 26 Oct 2022 10:02:49 +0000 (19:02 +0900)
committerEverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Wed, 26 Oct 2022 10:05:48 +0000 (19:05 +0900)
Change-Id: I55fb9e0f9934f802b03539889044db88d9541f99

src/lib/elementary_tizen/elm_genlist.c

index a61de9e..f8e8378 100644 (file)
@@ -3758,7 +3758,7 @@ static void _item_focused(Elm_Gen_Item *it, Elm_Genlist_Item_Scrollto_Type type)
 
    evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
    evas_object_geometry_get(sd->obj, &sx, &sy, &sw, &sh);
-   if ((x <= sx) || (y <= sy) || ((x + w) >= (sx + sw)) || ((y + h) >= (sy + sh)))
+   if ((y <= sy) || ((y + h) >= (sy + sh)))
      {
         //TIZEN_ONLY(20191217): Item selection support for non aligned items
         if ((it != sd->selecting_item) && !sd->on_focus_defer)