1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 15:23:14 +08:00

Fix drag box being positioned incorrectly for 1 frame

This commit is contained in:
smoogipoo 2019-10-24 17:22:14 +09:00
parent fb88001c0e
commit 7a71352684
2 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override bool OnDragStart(DragStartEvent e)
{
if (!beginSelectionMovement())
{
dragBox.UpdateDrag(e);
dragBox.FadeIn(250, Easing.OutQuint);
}
return true;
}

View File

@ -50,7 +50,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
};
}
public void UpdateDrag(DragEvent e)
public void UpdateDrag(MouseButtonEvent e)
{
var dragPosition = e.ScreenSpaceMousePosition;
var dragStartPosition = e.ScreenSpaceMouseDownPosition;