mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Extract zoom delta method
This commit is contained in:
@ -20,8 +20,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
|
||||
private readonly Drawable userContent;
|
||||
|
||||
private const float zoom_button_sensitivity = 0.02f;
|
||||
|
||||
public TimelineArea(Drawable content = null)
|
||||
{
|
||||
RelativeSizeAxes = Axes.X;
|
||||
@ -156,6 +154,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
Timeline.TicksVisible.BindTo(ticksCheckbox.Current);
|
||||
}
|
||||
|
||||
private void changeZoom(float change) => Timeline.Zoom += change * Timeline.MaxZoom * zoom_button_sensitivity;
|
||||
private void changeZoom(float change) => Timeline.Zoom += Timeline.CalculateZoomChange(change);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user