mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 00:59:18 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue