qs: fix workspace base index on scroll

This commit is contained in:
outfoxxed 2025-07-25 18:54:39 -07:00
parent 5caf4faa3a
commit 044bacf756
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -31,7 +31,7 @@ FullwidthMouseArea {
if (offset != 0) { if (offset != 0) {
const targetWorkspace = currentIndex + offset; 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}`); if (id != currentIndex) Hyprland.dispatch(`workspace ${id}`);
} }
} }