[libchamplain] Lower the non-scroll threshold



commit 0db8ada727a442e901768dff0121f48e2e4ab86c
Author: JiÅ?í Techet <techet gmail com>
Date:   Sat Feb 26 01:51:29 2011 +0100

    Lower the non-scroll threshold
    
    Drag of viewport is performed only when the mouse drag is larger
    than some threshold so minor mouse movements are not treated as
    drags. Use 4 pixels for this threshold instead of 8.

 champlain/champlain-kinetic-scroll-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-kinetic-scroll-view.c b/champlain/champlain-kinetic-scroll-view.c
index d476373..2f36e3e 100644
--- a/champlain/champlain-kinetic-scroll-view.c
+++ b/champlain/champlain-kinetic-scroll-view.c
@@ -429,7 +429,7 @@ motion_event_cb (ClutterActor *stage,
 
       if (!priv->in_drag)
         {
-          guint threshold = 8; // default value
+          guint threshold = 4;
 
           motion = &g_array_index (priv->motion_buffer,
                                    ChamplainKineticScrollViewMotion, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]