mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 00:39:15 +03:00
fix(mobile): show controls by default on motion photos (#25638)
fix: show controls by default on motion photos
This commit is contained in:
@@ -92,7 +92,9 @@ class AssetViewer extends ConsumerStatefulWidget {
|
|||||||
if (asset.isVideo || asset.isMotionPhoto) {
|
if (asset.isVideo || asset.isMotionPhoto) {
|
||||||
ref.read(videoPlaybackValueProvider.notifier).reset();
|
ref.read(videoPlaybackValueProvider.notifier).reset();
|
||||||
ref.read(videoPlayerControlsProvider.notifier).pause();
|
ref.read(videoPlayerControlsProvider.notifier).pause();
|
||||||
// Hide controls by default for videos and motion photos
|
}
|
||||||
|
// Hide controls by default for videos
|
||||||
|
if (asset.isVideo) {
|
||||||
ref.read(assetViewerProvider.notifier).setControls(false);
|
ref.read(assetViewerProvider.notifier).setControls(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user