Upstream merge with r75950
authorTae-Hwan Kim <the81.kim@samsung.com>
Mon, 3 Sep 2012 11:18:15 +0000 (20:18 +0900)
committerTae-Hwan Kim <the81.kim@samsung.com>
Mon, 3 Sep 2012 11:21:03 +0000 (20:21 +0900)
elm genlist: Fixed wrong reorder animation. Patch by Bluezery

Change-Id: I3076ae283e2a3be79483ccc56b39422367ff4832

src/lib/elm_genlist.c

index 1b05f5e..9cb995e 100644 (file)
@@ -2639,7 +2639,8 @@ _reorder_move_animator_cb(void *data)
    else y = dy;
 
    diff = abs(it->item->old_scrl_y - it->item->scrl_y);
-   if (diff > it->item->h) y = diff / 2;
+   if (diff < dy) y = diff;
+   else if (diff > it->item->h) y = diff / 2;
 
    if (it->item->old_scrl_y < it->item->scrl_y)
      {