mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
workspacesView: Fix off-by-one error
The scroll adjustment's upper value corresponds to the number of workspaces, not to the last workspace index. We want the latter when mirroring the layout in RTL locales, so subtract 1. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1598>
This commit is contained in:
parent
7462347905
commit
9f0e7632a6
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ class WorkspacesView extends WorkspacesViewBase {
|
|||
const vertical = workspaceManager.layout_rows === -1;
|
||||
const rtl = this.text_direction === Clutter.TextDirection.RTL;
|
||||
const progress = vertical || !rtl
|
||||
? adj.value : adj.upper - adj.value;
|
||||
? adj.value : adj.upper - adj.value - 1;
|
||||
|
||||
for (const ws of this._workspaces) {
|
||||
if (vertical)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue