mirror of
https://github.com/ppy/osu
synced 2025-03-25 04:18:03 +00:00
Fix selected volume control not updating correctly on mouse move
This commit is contained in:
parent
cbe4114e90
commit
7d405f04fb
@ -64,6 +64,8 @@ namespace osu.Game.Overlays.Volume
|
||||
}
|
||||
}
|
||||
|
||||
private const float transition_length = 500;
|
||||
|
||||
public VolumeMeter(string name, float circleSize, Color4 meterColour)
|
||||
{
|
||||
this.circleSize = circleSize;
|
||||
@ -344,12 +346,10 @@ namespace osu.Game.Overlays.Volume
|
||||
return true;
|
||||
}
|
||||
|
||||
private const float transition_length = 500;
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
protected override bool OnMouseMove(MouseMoveEvent e)
|
||||
{
|
||||
State = SelectionState.Selected;
|
||||
return false;
|
||||
return base.OnMouseMove(e);
|
||||
}
|
||||
|
||||
protected override void OnHoverLost(HoverLostEvent e)
|
||||
|
Loading…
Reference in New Issue
Block a user