Update ZenWorkspaces.mjs

Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
This commit is contained in:
Studio Movie Girl
2024-12-05 10:20:29 -06:00
committed by GitHub
parent c1a9034f3f
commit df801995ff

View File

@@ -275,7 +275,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
? currentIndex + 1
: currentIndex - 1;
if (Services.prefs.getBoolPref('zen.workspaces.wrap-around-navigation', false)) {
if (this.shouldWrapAroundNavigation) {
// Add length to handle negative indices and clamp within bounds
targetIndex = (targetIndex + workspaces.length) % workspaces.length;
} else {