mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use MaxBy
in all locations that can and update inspection level to match dotnet-build
This commit is contained in:
@ -479,7 +479,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
// copied from SliderBar so we can do custom spacing logic.
|
||||
float xPosition = (ToLocalSpace(screenSpaceMousePosition).X - RangePadding) / UsableWidth;
|
||||
|
||||
CurrentNumber.Value = beatDivisor.ValidDivisors.Value.Presets.OrderBy(d => Math.Abs(getMappedPosition(d) - xPosition)).First();
|
||||
CurrentNumber.Value = beatDivisor.ValidDivisors.Value.Presets.MinBy(d => Math.Abs(getMappedPosition(d) - xPosition));
|
||||
OnUserChange(Current.Value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user