mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 12:13:20 +08:00
Use linq Single
instead of First
for guaranteed singular match
This commit is contained in:
parent
9b5d6b391b
commit
34120b6131
@ -76,7 +76,7 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
|
|
||||||
protected override void OnTouchUp(TouchUpEvent e)
|
protected override void OnTouchUp(TouchUpEvent e)
|
||||||
{
|
{
|
||||||
var tracked = trackedTouches.First(t => t.Source == e.Touch.Source);
|
var tracked = trackedTouches.Single(t => t.Source == e.Touch.Source);
|
||||||
|
|
||||||
if (tracked.Action is OsuAction action)
|
if (tracked.Action is OsuAction action)
|
||||||
osuInputManager.KeyBindingContainer.TriggerReleased(action);
|
osuInputManager.KeyBindingContainer.TriggerReleased(action);
|
||||||
|
Loading…
Reference in New Issue
Block a user