From 500ea13155b8690b5958efe582c58ca15a733fde Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Sun, 26 Jun 2016 19:09:41 +0200 Subject: [PATCH] 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 --- js/ui/workspacesView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index e0c9249c7..6c66f3e61 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -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));