diff --git a/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs b/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs index 7de2f5014d..8e259de62d 100644 --- a/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs +++ b/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs @@ -54,6 +54,7 @@ private void addTestInputManagerStep() public void UseParentInputChange() { addTestInputManagerStep(); + AddStep("Move mouse", () => InputManager.MoveMouseTo(Content)); AddStep("Press buttons", () => { InputManager.PressButton(MouseButton.Left); @@ -268,6 +269,7 @@ public void TestMouseTouchProductionOnPassThrough() AddStep("end touch", () => InputManager.EndTouch(new Touch(TouchSource.Touch1, testInputManager.ScreenSpaceDrawQuad.Centre))); + AddStep("bring back mouse", () => InputManager.MoveMouseTo(testInputManager)); AddStep("press mouse", () => InputManager.PressButton(MouseButton.Left)); AddAssert("pass-through handled mouse", () => testInputManager.CurrentState.Mouse.Buttons.Single() == MouseButton.Left); }