More tuning for the pannable large lists kinetics.
authorAlejandro G. Castro <alex@igalia.com>
Mon, 7 Sep 2009 09:32:47 +0000 (11:32 +0200)
committerAlejandro G. Castro <alex@igalia.com>
Mon, 7 Sep 2009 09:33:23 +0000 (11:33 +0200)
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init),
(hildon_pannable_area_button_release_cb): More tuning for the
large lists.

ChangeLog
hildon/hildon-pannable-area.c

index b34f17c..f48cf2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2009-09-07  Alejandro G. Castro  <alex@igalia.com>
 
        * hildon/hildon-pannable-area.c,
+       (hildon_pannable_area_class_init),
+       (hildon_pannable_area_button_release_cb): More tuning for the
+       large lists.
+
+2009-09-07  Alejandro G. Castro  <alex@igalia.com>
+
+       * hildon/hildon-pannable-area.c,
        (hildon_pannable_area_class_init):
        Change the default value of the scrollbar_fade_delay.
 
index 8cd7fcd..219810a 100644 (file)
@@ -57,7 +57,7 @@
 #define SCROLL_FADE_TIMEOUT 100
 #define MOTION_EVENTS_PER_SECOND 25
 #define CURSOR_STOPPED_TIMEOUT 200
-#define MAX_SPEED_THRESHOLD 250
+#define MAX_SPEED_THRESHOLD 290
 #define PANNABLE_MAX_WIDTH 788
 #define PANNABLE_MAX_HEIGHT 378
 
@@ -436,7 +436,7 @@ hildon_pannable_area_class_init (HildonPannableAreaClass * klass)
                                                        "Deceleration multiplier",
                                                        "The multiplier used when decelerating when in "
                                                        "acceleration scrolling mode.",
-                                                       0, 1.0, 0.93,
+                                                       0, 1.0, 0.85,
                                                        G_PARAM_READWRITE |
                                                        G_PARAM_CONSTRUCT));
 
@@ -2758,9 +2758,11 @@ hildon_pannable_area_button_release_cb (GtkWidget * widget,
   priv->button_pressed = FALSE;
 
   /* if widget was moving fast in the panning, increase speed even more */
-  if ((event->time - priv->last_press_time < 200) &&
+  if ((event->time - priv->last_press_time < 125) &&
       ((ABS (priv->old_vel_x) > priv->vmin) ||
-       (ABS (priv->old_vel_y) > priv->vmin)))
+       (ABS (priv->old_vel_y) > priv->vmin)) &&
+      ((ABS (priv->old_vel_x) > 40) ||
+       (ABS (priv->old_vel_y) > 40)))
     {
       gint symbol = 0;