mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
workspacesView: Fix off-by-one error
This is basically9f0e7632a6ported overed1170906bwhich 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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue