From 0cfe8b08084416b722e536bb83bfb65322967924 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 30 Aug 2017 14:00:09 +1000 Subject: [PATCH] touchpad: ignore thumbs during edge scrolling Signed-off-by: Peter Hutterer --- 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 */