mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +00:00
Better boolean naming
This commit is contained in:
parent
270ab5c987
commit
66f816692f
@ -192,11 +192,11 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
|
||||
private double startDragChatHeight;
|
||||
private bool canBeDragged;
|
||||
private bool canBeResized;
|
||||
|
||||
protected override bool OnDragStart(InputState state)
|
||||
{
|
||||
canBeDragged = tabsArea.IsHovered;
|
||||
canBeResized = tabsArea.IsHovered;
|
||||
|
||||
if (!channelTabs.IsHovered)
|
||||
return base.OnDragStart(state);
|
||||
@ -207,7 +207,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override bool OnDrag(InputState state)
|
||||
{
|
||||
if (canBeDragged)
|
||||
if (canBeResized)
|
||||
{
|
||||
Trace.Assert(state.Mouse.PositionMouseDown != null);
|
||||
|
||||
@ -220,7 +220,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override bool OnDragEnd(InputState state)
|
||||
{
|
||||
canBeDragged = false;
|
||||
canBeResized = false;
|
||||
return base.OnDragEnd(state);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user