fix: Limits minimum automatic scale

This commit is contained in:
2025-02-15 17:41:49 +08:00
parent a5257c743b
commit 0751306926

View File

@@ -68,6 +68,7 @@ namespace Cryville.EEW.Unity.Map {
else
Scale = b.Width * _camera.pixelHeight / _camera.pixelWidth;
Scale *= 0.6f;
if (Scale < 0.01f) Scale = 0.01f;
transform.localPosition = new PointF(b.X + b.Width / 2, b.Y + b.Height / 2).ToVector2();
UpdateTransform();
}