[gnome-shell/wip/workspace: 140/143] workspacesView: Don't tween the upper of our scroll adjustment



commit b63dac844124a7bbb88407dee0f5016af5e17418
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Sep 11 11:47:56 2013 -0400

    workspacesView: Don't tween the upper of our scroll adjustment
    
    This really doesn't make sense. The new upper should be the new workspace
    index as soon as it's available.

 js/ui/workspacesView.js |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 5b999f6..bd2314b 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -236,13 +236,7 @@ const WorkspacesView = new Lang.Class({
     },
 
     updateWorkspaces: function(oldNumWorkspaces, newNumWorkspaces) {
-        let active = global.screen.get_active_workspace_index();
-
-        Tweener.addTween(this.scrollAdjustment,
-                         { upper: newNumWorkspaces,
-                           time: WORKSPACE_SWITCH_TIME,
-                           transition: 'easeOutQuad'
-                         });
+        this.scrollAdjustment.upper = newNumWorkspaces;
 
         if (newNumWorkspaces > oldNumWorkspaces) {
             for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]