From df801995fff02e176af5664e3be660ea8cff21fb Mon Sep 17 00:00:00 2001 From: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:20:29 -0600 Subject: [PATCH] Update ZenWorkspaces.mjs Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com> --- src/browser/base/zen-components/ZenWorkspaces.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/base/zen-components/ZenWorkspaces.mjs b/src/browser/base/zen-components/ZenWorkspaces.mjs index 74700bb8e..05feb15f9 100644 --- a/src/browser/base/zen-components/ZenWorkspaces.mjs +++ b/src/browser/base/zen-components/ZenWorkspaces.mjs @@ -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 {