mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 06:32:55 +08:00
Add test coverage of second touch moving but not resulting in cursor movement
This commit is contained in:
parent
c056d5a6fb
commit
cc408470f4
@ -176,6 +176,14 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
checkPressed(OsuAction.RightButton);
|
checkPressed(OsuAction.RightButton);
|
||||||
// in this case, touch 2 should not become the positional tracking touch.
|
// in this case, touch 2 should not become the positional tracking touch.
|
||||||
checkPosition(TouchSource.Touch1);
|
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]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user