From a5a6fd3bc213e5d73976593ba1d3c39a52a4bebd Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 11 Sep 2013 11:47:56 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+), 7 deletions(-) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 5b999f638..bd2314bb5 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++) {