Merge branch 'DebugLogCutoffNewMessageFix' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-DebugLogCutoffNewMessageFix

This commit is contained in:
Wojtek Figat
2025-03-31 15:15:28 +02:00

View File

@@ -715,13 +715,13 @@ namespace FlaxEditor.Windows
// Scroll to the new entry (if any added to view)
if (scrollView && anyVisible)
{
panelScroll.ScrollViewTo(newEntry);
panelScroll.ScrollViewTo(newEntry, true);
bool scrollViewNew = (panelScroll.VScrollBar.Maximum - panelScroll.VScrollBar.TargetValue) < LogEntry.DefaultHeight * 1.5f;
if (scrollViewNew != scrollView)
{
// Make sure scrolling doesn't stop in case too many entries were added at once
panelScroll.ScrollViewTo(new Float2(float.MaxValue, float.MaxValue));
panelScroll.ScrollViewTo(new Float2(float.MaxValue, float.MaxValue), true);
}
}
}