This commit is contained in:
NaBian committed 2023-04-03 23:14:52 +08:00
1 parent e865551915
commit bd5161c0a7
1 file changed
+8 -2
@@ -729,8 +729,14 @@ public class ImageViewer : Control
var olgImageHeight = ImageHeight;
var tempScale = isEnlarge ? _imgActualScale + ScaleInternal : _imgActualScale - ScaleInternal;
if (Math.Abs(tempScale) < ScaleInternal || Math.Abs(tempScale - 50) < 0.001)
return;
if (Math.Abs(tempScale) < ScaleInternal)
{
tempScale = ScaleInternal;
}
else if (Math.Abs(tempScale) > 50)
{
tempScale = 50;
}
ImageScale = tempScale;