1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Fixed console scrolling

This commit is contained in:
Brian Fiete 2024-07-23 15:13:53 +02:00
parent b0b85b7b43
commit 2250411276
3 changed files with 38 additions and 11 deletions

View file

@ -406,6 +406,10 @@ class ConsolePanel : Panel
}
}
float wantViewSize = Math.Max(mConsoleProvider.BufferHeight * mCellHeight, mHeight);
if (mView.mHeight != wantViewSize)
ResizeComponents();
if (mScrollableWidget.mVertScrollbar.mThumb.mMouseDown)
{
Paused = true;
@ -425,11 +429,8 @@ class ConsolePanel : Panel
else
mPauseCB.Label = "Paused";
if (!Paused)
{
if (mConsoleProvider.Update() case .Dirty)
MarkDirty();
}
if (mConsoleProvider.Update(Paused) case .Dirty)
MarkDirty();
/*if (mScreenInfo != null)
{