1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:12:56 +08:00

adjust if position

This commit is contained in:
Dragicafit 2018-12-11 00:38:03 +01:00
parent 9afbebf560
commit fb7d767909

View File

@ -54,8 +54,10 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
public bool OnPressed(OsuAction action)
{
if (cursorExpand)
switch (action)
if (!cursorExpand)
return false;
switch (action)
{
case OsuAction.LeftButton:
case OsuAction.RightButton:
@ -69,15 +71,17 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
public bool OnReleased(OsuAction action)
{
if (cursorExpand)
switch (action)
{
case OsuAction.LeftButton:
case OsuAction.RightButton:
if (--downCount == 0)
ActiveCursor.ScaleTo(targetScale, 200, Easing.OutQuad);
break;
}
if (!cursorExpand)
return false;
switch (action)
{
case OsuAction.LeftButton:
case OsuAction.RightButton:
if (--downCount == 0)
ActiveCursor.ScaleTo(targetScale, 200, Easing.OutQuad);
break;
}
return false;
}