X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=hildon%2Fhildon-pannable-area.c;fp=hildon%2Fhildon-pannable-area.c;h=436fdb8b863d9d35b69cf7ce19c0ae4a72841ad0;hb=e7ebb4366bbce4a0a9b7b4a04a7e7f0464a0159c;hp=3cea45b61c13f4f50347febc4d4295ede6051ff1;hpb=dc7f5f35da92050d1422c0a71fd685f2b60db44d;p=hildon 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; } /**