1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 16:03:01 +08:00

Mind the minimum size of the channel selection overlay

This commit is contained in:
MrTheMake 2017-09-08 18:21:42 +02:00
parent 6b3b012960
commit 15dd8d9071

View File

@ -212,7 +212,13 @@ namespace osu.Game.Overlays
{ {
Trace.Assert(state.Mouse.PositionMouseDown != null); Trace.Assert(state.Mouse.PositionMouseDown != null);
chatHeight.Value = startDragChatHeight - (state.Mouse.Position.Y - state.Mouse.PositionMouseDown.Value.Y) / Parent.DrawSize.Y; double targetChatHeight = startDragChatHeight - (state.Mouse.Position.Y - state.Mouse.PositionMouseDown.Value.Y) / Parent.DrawSize.Y;
// If the channel selection screen is shown, mind its minimum height
if (channelSelection.State == Visibility.Visible && targetChatHeight > 1f - channel_selection_min_height)
targetChatHeight = 1f - channel_selection_min_height;
chatHeight.Value = targetChatHeight;
} }
return true; return true;