Put the actual scroll event posting in the straight path.

Signed-off-by: Hans de Goede <hdego...@redhat.com>
---
 src/evdev-mt-touchpad.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 2455c36..ed668ee 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -536,11 +536,11 @@ tp_post_scroll_events(struct tp_dispatch *tp, uint64_t 
time)
 
        if (nfingers_down != 2) {
                tp_stop_scroll_events(tp, time);
-       } else {
-               tp_post_twofinger_scroll(tp, time);
-               return 1;
+               return 0;
        }
-       return 0;
+
+       tp_post_twofinger_scroll(tp, time);
+       return 1;
 }
 
 static void
-- 
1.9.3

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to