workspacesView: Initialize the adjustment's upper bound

Initializing the upper bound to zero means that on panning we'd start
scrolling from the first workspace even if the current workspace when
entering the overview was different since StAdjustment clamps the
value to be inside bounds.

https://bugzilla.gnome.org/show_bug.cgi?id=766883
This commit is contained in:
Rui Matos 2016-06-26 19:09:41 +02:00
parent ce8e7481e7
commit 500ea13155

View File

@ -103,7 +103,7 @@ const WorkspacesView = new Lang.Class({
page_increment: 1,
page_size: 1,
step_increment: 0,
upper: 0 });
upper: global.screen.n_workspaces });
this.scrollAdjustment.connect('notify::value',
Lang.bind(this, this._onScroll));