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:
parent
b0b85b7b43
commit
2250411276
3 changed files with 38 additions and 11 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue