From 11c0ea042855d9fcc715cec75ddfb2dcbd50b0bf Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Fri, 29 Nov 2024 00:19:09 +0400 Subject: [PATCH] autoscroll orders when overflow scolling patterns --- src/gui/orders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/orders.cpp b/src/gui/orders.cpp index 173d4231a..fc7ea16a4 100644 --- a/src/gui/orders.cpp +++ b/src/gui/orders.cpp @@ -265,7 +265,7 @@ void FurnaceGUI::drawOrders() { bool tooSmall=((displayChans+1)>((ImGui::GetContentRegionAvail().x)/(ImGui::CalcTextSize("AA").x+2.0*ImGui::GetStyle().ItemInnerSpacing.x))); float yHeight=ImGui::GetContentRegionAvail().y; float lineHeight=(ImGui::GetTextLineHeight()+4*dpiScale); - if (e->isPlaying()) { + if (e->isPlaying() || haveHitBounds) { if (followOrders) { float nextOrdScroll=(playOrder+1)*lineHeight-((yHeight-(tooSmall?ImGui::GetStyle().ScrollbarSize:0.0f))/2.0f); if (nextOrdScroll<0.0f) nextOrdScroll=0.0f;