From: Jae Hwan Kim Date: Thu, 24 Mar 2011 07:34:23 +0000 (+0000) Subject: From: Jae Hwan Kim X-Git-Tag: v1.0.0~3265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7160cc15bc2cd89f81d493fe96dbdbfdbcf0bf6c;p=platform%2Fupstream%2Felementary.git From: Jae Hwan Kim If the scroller is stopped and set the freeze push while bounce animation is running, it will stop bouncing in a moment. Even if the scroller is set the freeze pop again, the scroller don't finish the bouncing. I think that it should finish the bouncing when it is set the freeze pop. SVN revision: 58063 --- diff --git a/src/lib/els_scroller.c b/src/lib/els_scroller.c index 3b6ab717e..5d53cd864 100644 --- a/src/lib/els_scroller.c +++ b/src/lib/els_scroller.c @@ -1233,6 +1233,8 @@ elm_smart_scroller_freeze_set(Evas_Object *obj, Eina_Bool freeze) sd->down.onhold_animator = NULL; } } + else + bounce_eval(sd); } void @@ -1759,8 +1761,7 @@ _smart_event_mouse_up(void *data, Evas *e, Evas_Object *obj __UNUSED__, void *ev { vel = sqrt((dx * dx) + (dy * dy)) / at; if ((_elm_config->thumbscroll_friction > 0.0) && - (vel > _elm_config->thumbscroll_momentum_threshold) && - (!sd->freeze)) + (vel > _elm_config->thumbscroll_momentum_threshold)) { sd->down.dx = ((double)dx / at); sd->down.dy = ((double)dy / at);