mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 13:47:24 +08:00
Merge pull request #30482 from peppy/adjust-minimum-scale
Allow scaling down to 5% in popover scale dialog
This commit is contained in:
commit
7d39765f71
@ -67,7 +67,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
{
|
||||
Current = scaleInputBindable = new BindableNumber<float>
|
||||
{
|
||||
MinValue = 0.5f,
|
||||
MinValue = 0.05f,
|
||||
MaxValue = 2,
|
||||
Precision = 0.001f,
|
||||
Value = 1,
|
||||
@ -208,7 +208,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
if (!scaleHandler.OriginalSurroundingQuad.HasValue)
|
||||
return;
|
||||
|
||||
const float min_scale = 0.5f;
|
||||
const float min_scale = 0.05f;
|
||||
const float max_scale = 10;
|
||||
|
||||
var scale = scaleHandler.ClampScaleToPlayfieldBounds(new Vector2(max_scale), getOriginPosition(scaleInfo.Value), getAdjustAxis(scaleInfo.Value), getRotation(scaleInfo.Value));
|
||||
|
Loading…
Reference in New Issue
Block a user