mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 08:52:58 +08:00
Hotfix to fix chat scrolling to end
This commit is contained in:
parent
069245e7ab
commit
f81c66db63
@ -81,7 +81,7 @@ namespace osu.Game.Overlays.Chat
|
|||||||
|
|
||||||
ChatLineFlow.AddRange(displayMessages.Select(CreateChatLine));
|
ChatLineFlow.AddRange(displayMessages.Select(CreateChatLine));
|
||||||
|
|
||||||
if (scroll.IsScrolledToEnd(10) || !ChatLineFlow.Children.Any() || newMessages.Any(m => m is LocalMessage))
|
//if (scroll.IsScrolledToEnd(10) || !ChatLineFlow.Children.Any() || newMessages.Any(m => m is LocalMessage))
|
||||||
scrollToEnd();
|
scrollToEnd();
|
||||||
|
|
||||||
var staleMessages = ChatLineFlow.Children.Where(c => c.LifetimeEnd == double.MaxValue).ToArray();
|
var staleMessages = ChatLineFlow.Children.Where(c => c.LifetimeEnd == double.MaxValue).ToArray();
|
||||||
|
Loading…
Reference in New Issue
Block a user