From 9aae1df7a627067014300b6fa78d3c2d5a97b529 Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Tue, 9 Feb 2021 10:17:29 +0100 Subject: [PATCH] workspacesView: Fix off-by-one error This is basically 9f0e7632a6 ported over ed1170906b which was dropped this fix when copying things around. Part-of: --- 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 56b5e55ed..9ac7b6a65 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -167,7 +167,7 @@ class WorkspacesView extends WorkspacesViewBase { const rtl = this.text_direction === Clutter.TextDirection.RTL; const adj = this._scrollAdjustment; const currentWorkspace = vertical || !rtl - ? adj.value : adj.upper - adj.value; + ? adj.value : adj.upper - adj.value - 1; // Single fit mode implies centered too let x1 = 0;