GUI: fix scrolling when stepping rows

This commit is contained in:
tildearrow 2023-07-14 19:24:57 -05:00
parent 0461d220b8
commit d096d5eb3c
7 changed files with 21 additions and 11 deletions

View file

@ -1130,8 +1130,10 @@ void DivEngine::nextRow() {
}
}
prevOrder=curOrder;
prevRow=curRow;
if (!stepPlay) {
prevOrder=curOrder;
prevRow=curRow;
}
for (int i=0; i<chans; i++) {
if (song.delayBehavior!=2) {
@ -1337,7 +1339,11 @@ bool DivEngine::nextTick(bool noAccum, bool inhibitLowLat) {
}
}
endOfSong=false;
if (stepPlay==2) stepPlay=1;
if (stepPlay==2) {
stepPlay=1;
prevOrder=curOrder;
prevRow=curRow;
}
nextRow();
break;
}