mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
Fix drag box being incorrectly positioned for 1 frame (#6589)
Fix drag box being incorrectly positioned for 1 frame Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
commit
58f19217f7
@ -127,7 +127,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
protected override bool OnDragStart(DragStartEvent e)
|
protected override bool OnDragStart(DragStartEvent e)
|
||||||
{
|
{
|
||||||
if (!beginSelectionMovement())
|
if (!beginSelectionMovement())
|
||||||
|
{
|
||||||
|
dragBox.UpdateDrag(e);
|
||||||
dragBox.FadeIn(250, Easing.OutQuint);
|
dragBox.FadeIn(250, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -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 dragPosition = e.ScreenSpaceMousePosition;
|
||||||
var dragStartPosition = e.ScreenSpaceMouseDownPosition;
|
var dragStartPosition = e.ScreenSpaceMouseDownPosition;
|
||||||
|
Loading…
Reference in New Issue
Block a user