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

@ -446,7 +446,7 @@ void FurnaceGUI::drawPattern() {
float lineHeight=(ImGui::GetTextLineHeight()+2*dpiScale);
int curRow=e->getRow();
if (e->isPlaying() && followPattern && (!e->isStepping() || pendingStepUpdate)) updateScroll(curRow);
pendingStepUpdate=false;
if (--pendingStepUpdate<0) pendingStepUpdate=0;
if (nextScroll>-0.5f) {
ImGui::SetScrollY(nextScroll);
nextScroll=-1.0f;