mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -04:00
fix(mobile): playing a live photo causes the gallery to redraw the wrong image (#15027)
Fixed an issue where playing a motion video caused the gallery to re-render on the wrong image. Co-authored-by: Tom graham <tomg@questps.com.au>
This commit is contained in:
parent
4d6d5537b7
commit
5111ceffac
@ -286,7 +286,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||||||
body: Stack(
|
body: Stack(
|
||||||
children: [
|
children: [
|
||||||
PhotoViewGallery.builder(
|
PhotoViewGallery.builder(
|
||||||
key: ValueKey(isPlayingMotionVideo),
|
key: const ValueKey('gallery'),
|
||||||
scaleStateChangedCallback: (state) {
|
scaleStateChangedCallback: (state) {
|
||||||
final asset = ref.read(currentAssetProvider);
|
final asset = ref.read(currentAssetProvider);
|
||||||
if (asset == null) {
|
if (asset == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user