workspacesView: Enable long swipes

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1647>
This commit is contained in:
Alexander Mikhaylenko 2021-02-08 01:06:02 +05:00 committed by Georges Basile Stavracas Neto
parent 16f74ebc57
commit 2b9cf73309

View File

@ -498,6 +498,7 @@ class WorkspacesDisplay extends St.Widget {
this._swipeTracker = new SwipeTracker.SwipeTracker(
Main.layoutManager.overviewGroup, Shell.ActionMode.OVERVIEW);
this._swipeTracker.allowLongSwipes = true;
this._swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
this._swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
this._swipeTracker.connect('end', this._switchWorkspaceEnd.bind(this));