Merge dev into main #18
@ -115,7 +115,9 @@ public class Channel : UserControl
|
||||
Console.WriteLine("Waiting");
|
||||
Task.WaitAll(mm);
|
||||
Globals.ms.pc.MessageFlow.ForceScrollUpdate();
|
||||
if (Globals.ms.pc.MessageFlow.Controls.Length > 1 && Globals.ms.pc.MessageFlow.Controls[Globals.ms.pc.MessageFlow.Controls.Length - 1].Location.Y + Globals.ms.pc.MessageFlow.Controls[Globals.ms.pc.MessageFlow.Controls.Length - 1].Size.Y > Globals.ms.pc.MessageFlow.Size.Y)
|
||||
Globals.ms.pc.MessageFlow.ScrollToBottom();
|
||||
else Globals.ms.pc.MessageFlow.ScrollToTop();
|
||||
Console.WriteLine("Done");
|
||||
}
|
||||
BlockDraw = false;
|
||||
|
@ -402,6 +402,7 @@ public class PublicChat : UserControl
|
||||
public void ClearChat()
|
||||
{
|
||||
MessageFlow.Controls.Clear();
|
||||
MessageFlow.ScrollValue = 0;
|
||||
MessageFlow.ScrollUpdatesInterval = 33;
|
||||
lastm = null;
|
||||
lastUser = null;
|
||||
|
Loading…
Reference in New Issue
Block a user