qs: fix workspace base index on scroll
This commit is contained in:
parent
5caf4faa3a
commit
044bacf756
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ FullwidthMouseArea {
|
|||
|
||||
if (offset != 0) {
|
||||
const targetWorkspace = currentIndex + offset;
|
||||
const id = Math.max(1, Math.min(10, targetWorkspace));
|
||||
const id = Math.max(wsBaseIndex, Math.min(wsBaseIndex + 9, targetWorkspace));
|
||||
if (id != currentIndex) Hyprland.dispatch(`workspace ${id}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue