[elm_diskselector.c] Default item selection of diskselector is implemented with anima...
authorsumanth <sumanth.m@samsung.com>
Wed, 12 Oct 2011 10:48:59 +0000 (19:48 +0900)
committersumanth <sumanth.m@samsung.com>
Wed, 12 Oct 2011 12:16:27 +0000 (21:16 +0900)
Change-Id: I92717db90ed025e10716f5311e8822042b67e143

src/lib/elm_diskselector.c

index 8713c82..3542dc5 100644 (file)
@@ -654,7 +654,11 @@ _move_scroller(void *data)
      }
 
    evas_object_geometry_get(wd->scroller, NULL, &y, &w, &h);
-   elm_smart_scroller_child_region_show(wd->scroller, w / wd->display_item_num * i, y, w, h);
+   //move scroller in two steps for getting smooth launching effect.
+   if (i > 2)
+     elm_smart_scroller_child_region_show(wd->scroller, w / wd->display_item_num * (i-2), y, w, h);
+   elm_smart_scroller_region_bring_in(wd->scroller, w / wd->display_item_num * i, y, w, h);
+
    _select_item(dit);
    if (wd->idler)
      {