Change scrolling windows direction fixes #1167

This commit is contained in:
Charles Gagnon
2022-04-09 14:22:04 -04:00
parent cc7c6f6916
commit 709bfb947e

View File

@@ -416,7 +416,7 @@ var activateSiblingWindow = function(windows, direction, startWindow) {
let windowIndex = windows.indexOf(global.display.focus_window);
let nextWindowIndex = windowIndex < 0 ?
startWindow ? windows.indexOf(startWindow) : 0 :
windowIndex + (direction == 'up' ? 1 : -1);
windowIndex + (direction == 'up' ? -1 : 1);
if (nextWindowIndex == windows.length) {
nextWindowIndex = 0;