* src/hildon-pannable-area.c (hildon_pannable_area_motion_notify_cb): Avoid the first...
authorAlejandro G. Castro <alex@igalia.com>
Wed, 30 Jul 2008 10:12:10 +0000 (10:12 +0000)
committerAlejandro G. Castro <alex@igalia.com>
Wed, 30 Jul 2008 10:12:10 +0000 (10:12 +0000)
ChangeLog
src/hildon-pannable-area.c

index 6f27ec1..dc853c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-30  Alejandro G. Castro         <alex@igalia.com>
+
+       * src/hildon-pannable-area.c
+       (hildon_pannable_area_motion_notify_cb): Avoid the first jumpy
+       effect after reaching the movement thredshold. This way we start
+       using the distance after passing the thredshold.
+
 2008-07-29  Claudio Saavedra  <csaavedra@igalia.com>
 
        * src/hildon-button.c: (hildon_button_set_property): Use the
index 78fc47c..a75ccd3 100644 (file)
@@ -720,6 +720,8 @@ hildon_pannable_area_motion_notify_cb (GtkWidget * widget,
       ((ABS (x) > (dnd_threshold+DND_THRESHOLD_INC))
        || (ABS (y) > (dnd_threshold+DND_THRESHOLD_INC)))) {
     priv->moved = TRUE;
+    x = 0;
+    y = 0;
 
     if (priv->first_drag) {