Apply minor fixes

This commit is contained in:
Dean Herbert 2018-03-21 15:40:43 +09:00
parent 9a5e464c99
commit 63f0419d6a
1 changed files with 3 additions and 4 deletions

View File

@ -51,7 +51,7 @@ private void load(OsuColour colours)
{
new Drawable[]
{
new TickSliderBar(beatDivisor, 1, 2, 3, 4, 6, 8, 12, 16)
new TickSliderBar(beatDivisor, BindableBeatDivisor.VALID_DIVISORS)
{
RelativeSizeAxes = Axes.Both,
}
@ -216,11 +216,10 @@ protected override void UpdateValue(float value)
{
}
public override bool HandleKeyboardInput => IsHovered && !CurrentNumber.Disabled;
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
if (!IsHovered || CurrentNumber.Disabled)
return false;
switch (args.Key)
{
case Key.Right: