swipeTracker: Allow touchpad gestures with >3 fingers
Make it easier to switch workspaces by also allowing swipes with 4 or more fingers. This is consistent with how we behave for touchscreen swipes too. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3275>
This commit is contained in:
parent
676503ff27
commit
6a4cb2ce78
@ -126,7 +126,7 @@ const TouchpadSwipeGesture = GObject.registerClass({
|
||||
if (event.get_gesture_phase() === Clutter.TouchpadGesturePhase.BEGIN)
|
||||
this._state = TouchpadState.NONE;
|
||||
|
||||
if (event.get_touchpad_gesture_finger_count() !== GESTURE_FINGER_COUNT)
|
||||
if (event.get_touchpad_gesture_finger_count() < GESTURE_FINGER_COUNT)
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
if ((this._allowedModes & Main.actionMode) === 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user