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.
This commit is contained in:
Jasper St. Pierre 2013-09-11 11:47:56 -04:00
parent 287ddda5df
commit a5a6fd3bc2

View File

@ -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++) {