fix: close #1373
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user