1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +08:00

Nudge click location to avoid placement failures

This commit is contained in:
Bartłomiej Dach 2022-05-04 11:56:44 +02:00
parent a759e641eb
commit 6380216263
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -142,7 +142,7 @@ namespace osu.Game.Tests.Visual.Editing
// and the playfield/composer.
var scrollArea = hitObjectComposer.ChildrenOfType<ExpandingToolboxContainer>().First().ScreenSpaceDrawQuad;
var playfield = hitObjectComposer.Playfield.ScreenSpaceDrawQuad;
InputManager.MoveMouseTo(new Vector2(scrollArea.TopLeft.X, playfield.Centre.Y));
InputManager.MoveMouseTo(new Vector2(scrollArea.TopLeft.X + 1, playfield.Centre.Y));
});
AddAssert("no circles placed", () => editorBeatmap.HitObjects.Count == 0);