1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:52:55 +08:00

Add test coverage of second touch moving but not resulting in cursor movement

This commit is contained in:
Dean Herbert 2023-03-21 14:47:20 +09:00
parent c056d5a6fb
commit cc408470f4

View File

@ -176,6 +176,14 @@ namespace osu.Game.Rulesets.Osu.Tests
checkPressed(OsuAction.RightButton);
// in this case, touch 2 should not become the positional tracking touch.
checkPosition(TouchSource.Touch1);
// even if the second touch moves on the screen, the original tracking touch is retained.
beginTouch(TouchSource.Touch2, new Vector2(0));
beginTouch(TouchSource.Touch2, new Vector2(9999));
beginTouch(TouchSource.Touch2, new Vector2(0));
beginTouch(TouchSource.Touch2, new Vector2(9999));
checkPosition(TouchSource.Touch1);
}
[Test]