command palette: scroll to the beginning when the palette opens

This commit is contained in:
YohananDiamond 2023-07-12 11:14:51 -03:00
parent 81fd5a23b8
commit 30c1a69298

View file

@ -117,7 +117,7 @@ void FurnaceGUI::drawPalette() {
curPaletteChoice=i;
accepted=true;
}
if (navigated && current) ImGui::SetScrollHereY();
if ((navigated || paletteFirstFrame) && current) ImGui::SetScrollHereY();
}
}
ImGui::EndChild();