mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
workspacesView: Disable mouse drag to switch workspaces
During the user research, it was found that users would instinctively drag the workspace horizontally but would often, in the process, accidentally drag a window. Disable dragging workspaces using the cursor for now. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3742 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1694>
This commit is contained in:
parent
718a87554f
commit
ac6337848f
1 changed files with 3 additions and 1 deletions
|
|
@ -606,7 +606,9 @@ class WorkspacesDisplay extends St.Widget {
|
|||
this._workspacesReordered.bind(this));
|
||||
|
||||
this._swipeTracker = new SwipeTracker.SwipeTracker(
|
||||
Main.layoutManager.overviewGroup, Shell.ActionMode.OVERVIEW);
|
||||
Main.layoutManager.overviewGroup,
|
||||
Shell.ActionMode.OVERVIEW,
|
||||
{ allowDrag: false });
|
||||
this._swipeTracker.allowLongSwipes = true;
|
||||
this._swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
|
||||
this._swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue