mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Make dragging ladder more snappy
This commit is contained in:
parent
fb4eaaeae9
commit
97e572d4da
@ -36,8 +36,8 @@ namespace osu.Game.Tournament.Screens.Ladder
|
||||
{
|
||||
float newScale = Math.Clamp(scale + e.ScrollDelta.Y / 15 * scale, min_scale, max_scale);
|
||||
|
||||
this.MoveTo(target -= e.MousePosition * (newScale - scale), 2000, Easing.OutQuint);
|
||||
this.ScaleTo(scale = newScale, 2000, Easing.OutQuint);
|
||||
this.MoveTo(target -= e.MousePosition * (newScale - scale), 1000, Easing.OutQuint);
|
||||
this.ScaleTo(scale = newScale, 1000, Easing.OutQuint);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user