提交 bd5161c0 编写于 作者: N NaBian

fix: close #1373

上级 e8655519
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册