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:
parent
ad18bc4983
commit
4169e5592e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user