* hildon/hildon-pannable-area.c
(hildon_pannable_calculate_vel_factor): Correct the sum of the
deceleration factors.
2009-05-20 Claudio Saavedra <csaavedra@igalia.com>
+ * hildon/hildon-pannable-area.c
+ (hildon_pannable_calculate_vel_factor): Correct the sum of the
+ deceleration factors.
+
+2009-05-20 Claudio Saavedra <csaavedra@igalia.com>
+
* hildon/hildon-pannable-area.c (hildon_pannable_area_class_init):
Reduce the default value for 'scroll_time' to 1 second, since the
current initial scrolling takes too much time.
hildon_pannable_calculate_vel_factor (HildonPannableArea * self)
{
HildonPannableAreaPrivate *priv = self->priv;
- gfloat fct = 0;
+ gfloat fct = 1;
gfloat fct_i = 1;
gint i, n;
n = ceil (priv->sps * priv->scroll_time);
- for (i = 0; i < n && fct_i >= RATIO_TOLERANCE; i++) {
+ for (i = 1; i < n && fct_i >= RATIO_TOLERANCE; i++) {
fct_i *= priv->decel;
fct += fct_i;
}