Merge branch 'master' into prev-button-revamp

This commit is contained in:
Bartłomiej Dach
2020-01-07 21:49:53 +01:00
committed by GitHub
652 changed files with 12638 additions and 5497 deletions

View File

@ -390,7 +390,7 @@ namespace osu.Game.Overlays
Vector2 change = e.MousePosition - e.MouseDownPosition;
// Diminish the drag distance as we go further to simulate "rubber band" feeling.
change *= change.Length <= 0 ? 0 : (float)Math.Pow(change.Length, 0.7f) / change.Length;
change *= change.Length <= 0 ? 0 : MathF.Pow(change.Length, 0.7f) / change.Length;
this.MoveTo(change);
return true;