1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:43:04 +08:00

Fix SensitivitySlider keyboard control

This commit is contained in:
Nicolas Brassard 2017-11-29 23:03:26 -08:00
parent dddd432dc8
commit 36cfa552f4

View File

@ -80,6 +80,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
set
{
KeyboardStep = 0.01f;
BindableDouble doubleValue = (BindableDouble)value;
// create a second layer of bindable so we can only handle state changes when not being dragged.
@ -105,8 +107,6 @@ namespace osu.Game.Overlays.Settings.Sections.Input
public SensitivitySlider()
{
KeyboardStep = 0.01f;
Current.ValueChanged += newValue =>
{
if (!isDragging && Sensitivity != null)
@ -133,4 +133,4 @@ namespace osu.Game.Overlays.Settings.Sections.Input
public override string TooltipText => Current.Disabled ? "Enable raw input to adjust sensitivity" : Current.Value.ToString(@"0.##x");
}
}
}
}