Compare commits

...

1 Commits

Author SHA1 Message Date
Santo Shakil 07b44e772c fix(mobile): stop double close animation when dismissing an asset 2026-07-01 14:56:29 +06:00
@@ -168,6 +168,12 @@ class _AssetViewerState extends ConsumerState<AssetViewer> {
return;
}
// The viewer is closing; don't flip the current asset now. Flipping it swaps
// the grid tile hero keys mid pop and animates the close on two tiles (#23779).
if (!mounted || !(ModalRoute.of(context)?.isActive ?? true)) {
return;
}
AssetViewer._setAsset(ref, asset);
_preloader.preload(index, context.sizeData);
_handleCasting();