mirror of https://github.com/ppy/osu
Other input states need to be considered for wheel bindings
This commit is contained in:
parent
563cb46b4a
commit
8a81fba1ea
|
@ -186,7 +186,7 @@ protected override bool OnScroll(InputState state)
|
|||
{
|
||||
if (bindTarget.IsHovered)
|
||||
{
|
||||
bindTarget.UpdateKeyCombination(new KeyCombination(new[] { state.Mouse.ScrollDelta.Y > 0 ? InputKey.MouseWheelUp : InputKey.MouseWheelDown }));
|
||||
bindTarget.UpdateKeyCombination(new KeyCombination(KeyCombination.FromInputState(state).Keys.Append(state.Mouse.ScrollDelta.Y > 0 ? InputKey.MouseWheelUp : InputKey.MouseWheelDown)));
|
||||
finalise();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue