[PATCH libinput 1/3] touchpad: ignore thumbs during edge scrolling

Peter Hutterer peter.hutterer at who-t.net
Fri Sep 1 06:09:16 UTC 2017


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev-mt-touchpad-edge-scroll.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/evdev-mt-touchpad-edge-scroll.c b/src/evdev-mt-touchpad-edge-scroll.c
index 4704c68e..cab9a87d 100644
--- a/src/evdev-mt-touchpad-edge-scroll.c
+++ b/src/evdev-mt-touchpad-edge-scroll.c
@@ -384,7 +384,8 @@ tp_edge_scroll_post_events(struct tp_dispatch *tp, uint64_t time)
 		if (!t->dirty)
 			continue;
 
-		if (t->palm.state != PALM_NONE)
+		if (t->palm.state != PALM_NONE ||
+		    t->thumb.state == THUMB_STATE_YES)
 			continue;
 
 		/* only scroll with the finger in the previous edge */
-- 
2.13.5



More information about the wayland-devel mailing list