mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
Use AltPressed shorthand
This commit is contained in:
parent
ff2b01fa6f
commit
4b528e80d0
@ -113,7 +113,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
|
||||
protected override bool OnScroll(ScrollEvent e)
|
||||
{
|
||||
if (e.CurrentState.Keyboard.AltPressed)
|
||||
if (e.AltPressed)
|
||||
{
|
||||
// zoom when holding alt.
|
||||
setZoomTarget(zoomTarget + e.ScrollDelta.Y, zoomedContent.ToLocalSpace(e.ScreenSpaceMousePosition).X);
|
||||
|
Loading…
Reference in New Issue
Block a user