[gnome-shell/abderrahim/1598-redux: 2/2] workspacesView: Fix off-by-one error
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/abderrahim/1598-redux: 2/2] workspacesView: Fix off-by-one error
- Date: Tue, 9 Feb 2021 09:40:33 +0000 (UTC)
commit 9aae1df7a627067014300b6fa78d3c2d5a97b529
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Tue Feb 9 10:17:29 2021 +0100
workspacesView: Fix off-by-one error
This is basically 9f0e7632a6 ported over ed1170906b which was dropped this
fix when copying things around.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1655>
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 56b5e55eda..9ac7b6a657 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]