mirror of
https://github.com/ppy/osu
synced 2025-02-20 20:47:09 +00:00
Fix zoom delta math
This commit is contained in:
parent
d69dc457ba
commit
997fe00cdc
@ -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>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user