[gnome-shell/gbsneto/40-stuff: 56/68] workspacesView: Disable mouse drag to switch workspaces
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/40-stuff: 56/68] workspacesView: Disable mouse drag to switch workspaces
- Date: Wed, 20 Jan 2021 22:41:08 +0000 (UTC)
commit e9348a3cc081df97a36f1735579b76d941209ed4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jan 8 17:25:45 2021 -0300
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, causing the view to surprisingly zoom out.
Disable dragging workspaces using the cursor for now.
js/ui/workspacesView.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 0ab6b9eb1f..fddeaface8 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -527,7 +527,9 @@ class WorkspacesDisplay extends St.Widget {
this._clickAction = clickAction;
this._swipeTracker = new SwipeTracker.SwipeTracker(
- Main.layoutManager.overviewGroup, Shell.ActionMode.OVERVIEW);
+ Main.layoutManager.overviewGroup,
+ Shell.ActionMode.OVERVIEW,
+ { allowDrag: false });
this._swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
this._swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
this._swipeTracker.connect('end', this._switchWorkspaceEnd.bind(this));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]