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

Better boolean naming

This commit is contained in:
EVAST9919 2017-07-21 13:40:09 +03:00
parent 270ab5c987
commit 66f816692f

View File

@ -192,11 +192,11 @@ namespace osu.Game.Overlays
} }
private double startDragChatHeight; private double startDragChatHeight;
private bool canBeDragged; private bool canBeResized;
protected override bool OnDragStart(InputState state) protected override bool OnDragStart(InputState state)
{ {
canBeDragged = tabsArea.IsHovered; canBeResized = tabsArea.IsHovered;
if (!channelTabs.IsHovered) if (!channelTabs.IsHovered)
return base.OnDragStart(state); return base.OnDragStart(state);
@ -207,7 +207,7 @@ namespace osu.Game.Overlays
protected override bool OnDrag(InputState state) protected override bool OnDrag(InputState state)
{ {
if (canBeDragged) if (canBeResized)
{ {
Trace.Assert(state.Mouse.PositionMouseDown != null); Trace.Assert(state.Mouse.PositionMouseDown != null);
@ -220,7 +220,7 @@ namespace osu.Game.Overlays
protected override bool OnDragEnd(InputState state) protected override bool OnDragEnd(InputState state)
{ {
canBeDragged = false; canBeResized = false;
return base.OnDragEnd(state); return base.OnDragEnd(state);
} }