Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-14 18:41:35 +08:00
parent 511ff71f5f
commit 9c7c6f9e4e
6 changed files with 21 additions and 23 deletions

View File

@@ -605,8 +605,8 @@ class _ImageState extends State<Image> with WidgetsBindingObserver {
imgRatio > StyleString.imgMaxRatio &&
imgHeight > widget.containerSize.height;
if (isLongPic) {
minScale =
widget.containerSize.width / widget.containerSize.height * imgRatio;
final compatWidth = math.min(650.0, widget.containerSize.width);
minScale = compatWidth / widget.containerSize.height * imgRatio;
maxScale = math.max(widget.maxScale, minScale * 3);
}
result = Viewer(