mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Update in line with framework changes.
This commit is contained in:
Submodule osu-framework updated: 1654acef1c...de1568254c
@ -75,7 +75,7 @@ namespace osu.Game.Online.Chat.Drawables
|
|||||||
|
|
||||||
var displayMessages = newMessages.Skip(Math.Max(0, newMessages.Count() - Channel.MAX_HISTORY));
|
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();
|
scrollToEnd();
|
||||||
|
|
||||||
//up to last Channel.MAX_HISTORY messages
|
//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)
|
while (flow.Children.Count(c => c.LifetimeEnd == double.MaxValue) > Channel.MAX_HISTORY)
|
||||||
{
|
{
|
||||||
var d = flow.Children.First(c => c.LifetimeEnd == double.MaxValue);
|
var d = flow.Children.First(c => c.LifetimeEnd == double.MaxValue);
|
||||||
if (!scroll.IsScrolledToEnd)
|
if (!scroll.IsScrolledToEnd(10))
|
||||||
scroll.OffsetScrollPosition(-d.DrawHeight);
|
scroll.OffsetScrollPosition(-d.DrawHeight);
|
||||||
d.Expire();
|
d.Expire();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user