1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Check drag location on mouse down instead of drag start to avoid lenience issues

This commit is contained in:
Dean Herbert 2023-11-24 16:39:29 +09:00
parent 2f3c05154d
commit 36b45d34f7
No known key found for this signature in database

View File

@ -251,10 +251,14 @@ namespace osu.Game.Overlays
{
}
protected override bool OnMouseDown(MouseDownEvent e)
{
isDraggingTopBar = topBar.DragBar.IsHovered;
return base.OnMouseDown(e);
}
protected override bool OnDragStart(DragStartEvent e)
{
isDraggingTopBar = topBar.IsHovered;
if (!isDraggingTopBar)
return base.OnDragStart(e);