From 50ff4d982631f64d6bd2b64b1ca8236aa9c0a4f8 Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Sun, 15 Dec 2024 11:26:00 -0500 Subject: [PATCH] Fix failing test case --- .../Visual/Input/TestScenePassThroughInputManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs b/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs index 7de2f5014d..f6023fc0da 100644 --- a/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs +++ b/osu.Framework.Tests/Visual/Input/TestScenePassThroughInputManager.cs @@ -268,6 +268,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); }