[scroller] bug fix - cannot scroll while genlist items are loaded
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 2 May 2011 12:15:27 +0000 (21:15 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 4 May 2011 03:06:54 +0000 (12:06 +0900)
Change-Id: I7751bb8c1733baf35ae67b4209e6e60cd3053781

src/lib/els_scroller.c

index ac4a62f..91ee4a9 100644 (file)
@@ -850,6 +850,7 @@ _smart_momentum_animator(void *data)
              y = py;
           }
         elm_smart_scroller_child_pos_set(sd->smart_obj, x, y);
+        _update_wanted_coordinates(sd, px, py);
         sd->pan_func.max_get(sd->pan_obj, &maxx, &maxy);
         sd->pan_func.min_get(sd->pan_obj, &minx, &miny);
         if (!sd->bounce_horiz)
@@ -867,7 +868,6 @@ _smart_momentum_animator(void *data)
             (no_bounce_x_end && no_bounce_y_end))
           {
              _smart_anim_stop(sd->smart_obj);
-             _update_wanted_coordinates(sd, px, py);
 
              sd->down.momentum_animator = NULL;
              sd->down.bounce_x_hold = 0;
@@ -1434,6 +1434,10 @@ _elm_smart_scroller_wanted_region_set(Evas_Object *obj)
    INTERNAL_ENTRY;
    Evas_Coord ww, wh, wx = sd->wx;
 
+   if (sd->down.now || sd->down.momentum_animator ||
+       sd->down.bounce_x_animator || sd->down.bounce_y_animator ||
+       sd->down.hold_animator || sd->down.onhold_animator) return;
+
    /* Flip to RTL cords only if init in RTL mode */
    if(sd->is_mirrored)
      wx = _elm_smart_scroller_x_mirrored_get(obj, sd->wx);