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()); } }));