mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(mobile): play motion video with long press gesture support (#6543)
This commit is contained in:
parent
9bce3417e9
commit
42f03af2dc
6 changed files with 52 additions and 0 deletions
|
|
@ -331,6 +331,11 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
onTapDown: (_, __, ___) {
|
||||
ref.read(showControlsProvider.notifier).toggle();
|
||||
},
|
||||
onLongPressStart: (_, __, ___) {
|
||||
if (asset.livePhotoVideoId != null) {
|
||||
isPlayingVideo.value = true;
|
||||
}
|
||||
},
|
||||
imageProvider: provider,
|
||||
heroAttributes: PhotoViewHeroAttributes(
|
||||
tag: isFromDto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue