autoscroll orders when overflow scolling patterns
This commit is contained in:
parent
52aad00382
commit
11c0ea0428
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue