mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-04 12:27:50 +00:00
Update ZenWorkspaces.mjs
Signed-off-by: Studio Movie Girl <168581144+neurokitti@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c1a9034f3f
commit
df801995ff
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user