mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:43:01 +08:00
Check drag location on mouse down instead of drag start to avoid lenience issues
This commit is contained in:
parent
2f3c05154d
commit
36b45d34f7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user