High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: set limit maximum zoom in asset viewer (#31609)
TokenLimitExceeded810454a34300
diff --git a/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dartindex 6afc2d4220..f990eb297f 100644--- a/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart+++ b/mobile/lib/presentation/widgets/asset_viewer/asset_page.widget.dart@@ -54,6 +54,7 @@ class _AssetPageState extends ConsumerState<AssetPage> {final _scrollController = SnapScrollController();double _snapOffset = 0.0;+ static const double _maxScaleMultiplier = 20.0;DragStartDetails? _dragStart;_DragIntent _dragIntent = _DragIntent.none;@@ -357,6 +358,7 @@ class _AssetPageState extends ConsumerState<AssetPage> {filterQuality: FilterQuality.high,tightMode: true,enablePanAlways: true,+ maxScale: PhotoViewComputedScale.contained * _maxScaleMultiplier,disableScaleGestures: _showingDetails,scaleStateChangedCallback: _onScaleStateChanged,onPageBuild: _onPageBuild,@@ -391,6 +393,7 @@ class _AssetPageState extends ConsumerState<AssetPage> {basePosition: Alignment.center,disableScaleGestures: _showingDetails,minScale: PhotoViewComputedScale.contained,+ maxScale: PhotoViewComputedScale.contained * _maxScaleMultiplier,initialScale: PhotoViewComputedScale.contained,tightMode: true,onPageBuild: _onPageBuild,