mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-01-06 07:10:08 +01:00
scrolling: SCollumnData::up/down Break out of the loop after the first swap (#457)
This commit is contained in:
parent
c1ddebb423
commit
ee66b49fda
1 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ void SColumnData::up(SP<SScrollingWindowData> w) {
|
|||
continue;
|
||||
|
||||
std::swap(windowDatas[i], windowDatas[i - 1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -108,6 +109,7 @@ void SColumnData::down(SP<SScrollingWindowData> w) {
|
|||
continue;
|
||||
|
||||
std::swap(windowDatas[i], windowDatas[i + 1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue