Skip to content

Commit

Permalink
Update ZenWorkspaces.mjs
Browse files Browse the repository at this point in the history
Signed-off-by: Studio Movie Girl <[email protected]>
  • Loading branch information
neurokitti authored Dec 5, 2024
1 parent c1a9034 commit df80199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/base/zen-components/ZenWorkspaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit df80199

Please sign in to comment.