Provides for a more consistent scrolling experience, otherwise delta
leftovers may trigger extra events even when the actual scrolling action
stays the same.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/synaptics.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/synaptics.c b/src/synaptics.c
index 0546ab9..429f5d0 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2414,6 +2414,8 @@ HandleScrolling(SynapticsPrivate *priv, struct 
SynapticsHwState *hw,
                DBG(7, "circular scroll detected on edge\n");
            }
        }
+        priv->scroll.delta_y = 0;
+        priv->scroll.delta_x = 0;
     }
     if (!priv->circ_scroll_on) {
        if (finger) {
-- 
1.7.10

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to