workspaceAnimation: Allow long swipes in session

As per design feedback, allow long swipes in the session too.

See https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3802#note_1124701

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1865>
This commit is contained in:
Georges Basile Stavracas Neto 2021-05-30 12:02:12 -03:00
parent 55fcb3aa00
commit dfae3281b9

View File

@ -287,6 +287,7 @@ var WorkspaceAnimationController = class {
Clutter.Orientation.HORIZONTAL,
Shell.ActionMode.NORMAL,
{ allowDrag: false });
swipeTracker.allowLongSwipes = true;
swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
swipeTracker.connect('end', this._switchWorkspaceEnd.bind(this));