mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 06:29:54 +08:00
Fix zoom delta math
This commit is contained in:
@@ -167,7 +167,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
{
|
||||
}
|
||||
|
||||
public float CalculateZoomChange(float rawChange) => rawChange * MaxZoom * zoom_change_sensitivity;
|
||||
public float CalculateZoomChange(float rawChange) => rawChange * (MaxZoom - minZoom) * zoom_change_sensitivity;
|
||||
|
||||
private class TransformZoom : Transform<float, ZoomableScrollContainer>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user