From 8184b2c57bbf1e4456fbcc59385f9bc9e7a97a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 23 Jan 2010 00:49:15 +0100 Subject: [PATCH] [Overview] Correct scroll directions on indicators When using the scroll wheel on the workspace indicators in single view, make them use the same interpretation as the scrollbars: scrolling up moves to the previous workspace, scrolling down to the next one. https://bugzilla.gnome.org/show_bug.cgi?id=607824 --- js/ui/workspacesView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 65d3480e9..fe25fac67 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -707,9 +707,9 @@ SingleView.prototype = { let direction = event.get_scroll_direction(); let activeWorkspaceIndex = global.screen.get_active_workspace_index(); let numWorkspaces = global.screen.n_workspaces; - if (direction == Clutter.ScrollDirection.UP && activeWorkspaceIndex < numWorkspaces - 1) { + if (direction == Clutter.ScrollDirection.DOWN && activeWorkspaceIndex < numWorkspaces - 1) { this._workspaces[activeWorkspaceIndex+1]._metaWorkspace.activate(global.get_current_time()); - } else if (direction == Clutter.ScrollDirection.DOWN && activeWorkspaceIndex > 0) { + } else if (direction == Clutter.ScrollDirection.UP && activeWorkspaceIndex > 0) { this._workspaces[activeWorkspaceIndex-1]._metaWorkspace.activate(global.get_current_time()); } }));