workspacesView: Fix off-by-one error
This is basically9f0e7632a6
ported overed1170906b
which was dropped this fix when copying things around. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1655>
This commit is contained in:
parent
8e6191b436
commit
9aae1df7a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user