Skip to content

Commit 9652ccd

Browse files
authored
Merge branch 'main' into leolost/reduce-ws-sensitivity
2 parents 50b47c0 + ceff8a6 commit 9652ccd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Gestures/TouchpadBackend.vala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ private class Gala.TouchpadBackend : Object, GestureBackend {
5656
return Clutter.EVENT_PROPAGATE;
5757
}
5858

59-
if (state == IGNORED) {
60-
if (event.get_gesture_phase () == END || event.get_gesture_phase () == CANCEL) {
61-
reset ();
62-
}
59+
if (state != ONGOING && (event.get_gesture_phase () == END || event.get_gesture_phase () == CANCEL)) {
60+
reset ();
61+
return Clutter.EVENT_PROPAGATE;
62+
}
6363

64+
if (state == IGNORED) {
6465
return Clutter.EVENT_PROPAGATE;
6566
}
6667

0 commit comments

Comments
 (0)