From: Alejandro G. Castro Date: Tue, 8 Sep 2009 08:03:03 +0000 (+0200) Subject: Fixed problem with the timeout deceleration in pannable. X-Git-Tag: 2.2.0-rc4~1 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=e7ebb4366bbce4a0a9b7b4a04a7e7f0464a0159c;hp=dc7f5f35da92050d1422c0a71fd685f2b60db44d;p=hildon Fixed problem with the timeout deceleration in pannable. * hildon/hildon-pannable-area.c, (hildon_pannable_area_timeout): Fixed problem with the timeout function, we need to move before decelerating the first time or we are loosing the first jump. Fixes: NB#137604 (Pannable scroll_to does not move correctly) --- diff --git a/ChangeLog b/ChangeLog index ba70b4e..11a9ccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-09-08 Alejandro G. Castro + + * hildon/hildon-pannable-area.c, + (hildon_pannable_area_timeout): Fixed problem with the timeout + function, we need to move before decelerating the first time or we + are loosing the first jump. + + Fixes: NB#137604 (Pannable scroll_to does not move correctly) + 2009-09-07 Claudio Saavedra [2.2.0 Release Candidate 3] diff --git a/hildon/hildon-pannable-area.c b/hildon/hildon-pannable-area.c index 3cea45b..436fdb8 100644 --- a/hildon/hildon-pannable-area.c +++ b/hildon/hildon-pannable-area.c @@ -2314,6 +2314,10 @@ hildon_pannable_area_timeout (HildonPannableArea * area) return FALSE; } + hildon_pannable_area_scroll (area, priv->vel_x, priv->vel_y); + + gdk_window_process_updates (GTK_WIDGET (area)->window, FALSE); + if (!priv->button_pressed) { /* Decelerate gradually when pointer is raised */ if ((!priv->overshot_dist_y) && @@ -2358,10 +2362,6 @@ hildon_pannable_area_timeout (HildonPannableArea * area) return FALSE; } - hildon_pannable_area_scroll (area, priv->vel_x, priv->vel_y); - - gdk_window_process_updates (GTK_WIDGET (area)->window, FALSE); - return TRUE; } @@ -3059,7 +3059,7 @@ hildon_pannable_calculate_vel_factor (HildonPannableArea * self) fct += fct_i; } - priv->vel_factor = fct; + priv->vel_factor = fct; } /**