Fix issue #5149: Make chat window not autoscroll

It will autoscroll unless the chat window is open and the scroll
position is not at the bottom.
This commit is contained in:
Pavlos Touboulidis
2014-04-25 18:17:29 +03:00
parent ef066560ad
commit e5e97c9a11
2 changed files with 5 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ namespace OpenRA.Widgets
return;
// This takes advantage of the fact that recentLines is ordered by expiration, from sooner to later
while (recentLines.Count > 0 && totalTicks >= recentLines [0].Expiration)
while (recentLines.Count > 0 && totalTicks >= recentLines[0].Expiration)
recentLines.RemoveAt(0);
}
}