1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00

Use AltPressed shorthand

This commit is contained in:
Bartłomiej Dach 2020-11-03 21:49:04 +01:00
parent ff2b01fa6f
commit 4b528e80d0

View File

@ -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);