mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user