diff --git a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart index 007300a328..792f3623c9 100644 --- a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart +++ b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart @@ -795,8 +795,8 @@ class GalleryViewerPage extends HookConsumerWidget { imageProvider: provider, heroAttributes: PhotoViewHeroAttributes( tag: isFromDto - ? '${a.remoteId}-$heroOffset' - : a.id + heroOffset, + ? '${currentAsset.remoteId}-$heroOffset' + : currentAsset.id + heroOffset, transitionOnUserGestures: true, ), filterQuality: FilterQuality.high, @@ -815,8 +815,8 @@ class GalleryViewerPage extends HookConsumerWidget { handleSwipeUpDown(details), heroAttributes: PhotoViewHeroAttributes( tag: isFromDto - ? '${a.remoteId}-$heroOffset' - : a.id + heroOffset, + ? '${currentAsset.remoteId}-$heroOffset' + : currentAsset.id + heroOffset, ), filterQuality: FilterQuality.high, maxScale: 1.0,