diff --git a/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart index 663360ef6..09718b562 100644 --- a/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart +++ b/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart @@ -57,7 +57,7 @@ class _AssetPageState extends ConsumerState { final _scrollController = SnapScrollController(); double _snapOffset = 0.0; - static const double _maxScaleMultiplier = 20.0; + static const double _maxImagePixelSize = 12.0; DragStartDetails? _dragStart; _DragIntent _dragIntent = _DragIntent.none; @@ -374,7 +374,7 @@ class _AssetPageState extends ConsumerState { filterQuality: FilterQuality.high, tightMode: true, enablePanAlways: true, - maxScale: PhotoViewComputedScale.contained * _maxScaleMultiplier, + maxScale: _maxImagePixelSize, disableScaleGestures: _showingDetails, scaleStateChangedCallback: _onScaleStateChanged, onPageBuild: _onPageBuild, @@ -409,7 +409,7 @@ class _AssetPageState extends ConsumerState { basePosition: Alignment.center, disableScaleGestures: _showingDetails, minScale: PhotoViewComputedScale.contained, - maxScale: PhotoViewComputedScale.contained * _maxScaleMultiplier, + maxScale: _maxImagePixelSize, initialScale: PhotoViewComputedScale.contained, tightMode: true, onPageBuild: _onPageBuild,