[gnome-shell] [Overview] Correct scroll directions on indicators
- From: Florian Müllner <fmuellner src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [Overview] Correct scroll directions on indicators
- Date: Sat, 23 Jan 2010 00:09:32 +0000 (UTC)
commit 8184b2c57bbf1e4456fbcc59385f9bc9e7a97a14
Author: Florian Müllner <fmuellner src gnome org>
Date: Sat Jan 23 00:49:15 2010 +0100
[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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 65d3480..fe25fac 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());
}
}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]