* hildon/hildon-pannable-area.c,
(hildon_pannable_area_scroll_indicator_fade),
(hildon_pannable_area_button_release_cb): Reviewed vmin
conditions, it could cause problems in the fadeout procedure.
2009-05-25 Alejandro G. Castro <alex@igalia.com>
+ * hildon/hildon-pannable-area.c,
+ (hildon_pannable_area_scroll_indicator_fade),
+ (hildon_pannable_area_button_release_cb): Reviewed vmin
+ conditions, it could cause problems in the fadeout procedure.
+
+2009-05-25 Alejandro G. Castro <alex@igalia.com>
+
* hildon/hildon-pannable-area.c
(hildon_pannable_area_button_release_cb): Added a threshold to
push the animation if the speed is big (MAX_SPEED_THRESHOLD).
HildonPannableAreaPrivate *priv = area->priv;
/* if moving do not fade out */
- if (((ABS (priv->vel_y)>1.0)||
- (ABS (priv->vel_x)>1.0))&&(!priv->button_pressed)) {
+ if (((ABS (priv->vel_y)>priv->vmin)||
+ (ABS (priv->vel_x)>priv->vmin))&&(!priv->button_pressed)) {
return TRUE;
}
}
}
- if ((ABS (priv->vel_y) > 1.0)||
- (ABS (priv->vel_x) > 1.0)) {
+ if ((ABS (priv->vel_y) > priv->vmin)||
+ (ABS (priv->vel_x) > priv->vmin)) {
priv->scroll_indicator_alpha = 1.0;
}