mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Change volume control mouse wheel behaviour to not gain full-screen focus.
This commit is contained in:
@ -22,8 +22,6 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
private FlowContainer content;
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
public override bool Contains(Vector2 screenSpacePos) => true;
|
||||
|
||||
private void volumeChanged(object sender, EventArgs e)
|
||||
{
|
||||
Show();
|
||||
@ -70,13 +68,15 @@ namespace osu.Game.Graphics.UserInterface.Volume
|
||||
base.Dispose(isDisposing);
|
||||
}
|
||||
|
||||
protected override bool OnWheel(InputState state)
|
||||
public void Adjust(InputState state)
|
||||
{
|
||||
if (!IsVisible)
|
||||
return false;
|
||||
{
|
||||
Show();
|
||||
return;
|
||||
}
|
||||
|
||||
volumeMeterMaster.TriggerWheel(state);
|
||||
return true;
|
||||
}
|
||||
|
||||
ScheduledDelegate popOutDelegate;
|
||||
|
Reference in New Issue
Block a user