mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
Update in line with framework changes.
This commit is contained in:
parent
6a83620589
commit
5f29b0dc4f
@ -1 +1 @@
|
||||
Subproject commit 1654acef1ca9b9f203bfef1b507f3515b41a4d84
|
||||
Subproject commit de1568254c4c9a4ea540ccad94700c5c51f70dc2
|
@ -75,7 +75,7 @@ namespace osu.Game.Online.Chat.Drawables
|
||||
|
||||
var displayMessages = newMessages.Skip(Math.Max(0, newMessages.Count() - Channel.MAX_HISTORY));
|
||||
|
||||
if (scroll.IsScrolledToEnd || !flow.Children.Any())
|
||||
if (scroll.IsScrolledToEnd(10) || !flow.Children.Any())
|
||||
scrollToEnd();
|
||||
|
||||
//up to last Channel.MAX_HISTORY messages
|
||||
@ -88,7 +88,7 @@ namespace osu.Game.Online.Chat.Drawables
|
||||
while (flow.Children.Count(c => c.LifetimeEnd == double.MaxValue) > Channel.MAX_HISTORY)
|
||||
{
|
||||
var d = flow.Children.First(c => c.LifetimeEnd == double.MaxValue);
|
||||
if (!scroll.IsScrolledToEnd)
|
||||
if (!scroll.IsScrolledToEnd(10))
|
||||
scroll.OffsetScrollPosition(-d.DrawHeight);
|
||||
d.Expire();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user