Reviewed the minimum speed conditions.
authorAlejandro G. Castro <alex@igalia.com>
Mon, 25 May 2009 17:23:20 +0000 (19:23 +0200)
committerAlejandro G. Castro <alex@igalia.com>
Mon, 25 May 2009 17:38:44 +0000 (19:38 +0200)
* 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.

ChangeLog
hildon/hildon-pannable-area.c

index f430556..87d5158 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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).
index 5fe1527..f3f9eff 100644 (file)
@@ -1562,8 +1562,8 @@ hildon_pannable_area_scroll_indicator_fade(HildonPannableArea * area)
   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;
   }
@@ -2564,8 +2564,8 @@ hildon_pannable_area_button_release_cb (GtkWidget * widget,
     }
   }
 
-  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;
   }