From: Jaehwan Kim Date: Wed, 13 Jul 2011 05:14:17 +0000 (+0900) Subject: [scroller] fix the bounce effect with acceleration X-Git-Tag: REL_F_I9200_20110715_1~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=161fc45f92a5504a9ce74e2ce7f9ed888934e4d1;p=framework%2Fuifw%2Felementary.git [scroller] fix the bounce effect with acceleration --- diff --git a/src/lib/els_scroller.c b/src/lib/els_scroller.c index 6cbf206..dfa449a 100644 --- a/src/lib/els_scroller.c +++ b/src/lib/els_scroller.c @@ -691,7 +691,7 @@ _smart_bounce_x_animator(void *data) if (sd->down.momentum_animator) { ed = abs(sd->down.dx * (_elm_config->thumbscroll_friction + sd->down.extra_time) - sd->down.b0x); - md = abs(15*w); // FIXME : 15 - probably should be config + md = abs(_elm_config->thumbscroll_friction*5*w); if (ed > md) r = (double)(md)/(double)ed; } x = sd->down.b2x + (int)((double)(dx - odx)*r); @@ -745,7 +745,7 @@ _smart_bounce_y_animator(void *data) if (sd->down.momentum_animator) { ed = abs(sd->down.dy * (_elm_config->thumbscroll_friction + sd->down.extra_time) - sd->down.b0y); - md = abs(15*h); // FIXME : 15 - probably should be config + md = abs(_elm_config->thumbscroll_friction*5*h); if (ed > md) r = (double)(md)/(double)ed; } y = sd->down.b2y + (int)((double)(dy - ody)*r);