elm_index: skip level check when only 0 level is active 57/114757/3
authorSungtaek Hong <sth253.hong@samsung.com>
Wed, 15 Feb 2017 04:00:46 +0000 (13:00 +0900)
committerSungtaek Hong <sth253.hong@samsung.com>
Wed, 15 Feb 2017 04:39:51 +0000 (20:39 -0800)
 - In mouse move callback, index tries to calculate current level.
 - This is not needed when level 1 is not active. and blocks index item
   change.

origin: upstream(8ac66d9dc09e911fe3dfe0eafca2121fb2c74a15)

Change-Id: I760cc2ea62edb5e197a9210625299e108ac042fb
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
src/lib/elm_index.c

index 2347ce53d72c92b50cb9b4daa556bf43b9c2661b..12022564cbedc44b1fbcd44e95c3ceee80790bcd 100644 (file)
@@ -965,7 +965,7 @@ _on_mouse_move(void *data,
      (wd->resize_obj, "elm.dragable.pointer",
      (!edje_object_mirrored_get(wd->resize_obj)) ?
      x : (x - w), y);
-   if (!sd->horizontal)
+   if ((!sd->horizontal) && (sd->event_rect[1]))
      {
         if (adx > minw)
           {