1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Reword event handler name and update xmldoc

This commit is contained in:
Salman Ahmed 2022-01-25 19:36:19 +03:00
parent ad18bc4983
commit 4169e5592e
2 changed files with 5 additions and 5 deletions

View File

@ -216,9 +216,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
return base.OnScroll(e);
}
protected override void OnZoomChange()
protected override void OnZoomChanged()
{
base.OnZoomChange();
base.OnZoomChanged();
timelineZoomScale.Value = Zoom / defaultTimelineZoom;
}

View File

@ -137,16 +137,16 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
zoomTarget = Math.Clamp(newZoom, MinZoom, MaxZoom);
transformZoomTo(zoomTarget, focusPoint, ZoomDuration, ZoomEasing);
OnZoomChange();
OnZoomChanged();
}
private void transformZoomTo(float newZoom, float focusPoint, double duration = 0, Easing easing = Easing.None)
=> this.TransformTo(this.PopulateTransform(new TransformZoom(focusPoint, zoomedContent.DrawWidth, Current), newZoom, duration, easing));
/// <summary>
/// Invoked when the zoom target has changed.
/// Invoked when <see cref="Zoom"/> has changed.
/// </summary>
protected virtual void OnZoomChange()
protected virtual void OnZoomChanged()
{
}