mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
fix(mobile): Disable hit testing for transparent bars (#2727)
This commit is contained in:
parent
9a80a2151c
commit
e101e40c47
1 changed files with 78 additions and 69 deletions
|
@ -276,7 +276,9 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
(showAppBar.value && !isZoomed.value)) &&
|
(showAppBar.value && !isZoomed.value)) &&
|
||||||
!isPlayingVideo.value;
|
!isPlayingVideo.value;
|
||||||
|
|
||||||
return AnimatedOpacity(
|
return IgnorePointer(
|
||||||
|
ignoring: !show,
|
||||||
|
child: AnimatedOpacity(
|
||||||
duration: const Duration(milliseconds: 100),
|
duration: const Duration(milliseconds: 100),
|
||||||
opacity: show ? 1.0 : 0.0,
|
opacity: show ? 1.0 : 0.0,
|
||||||
child: Container(
|
child: Container(
|
||||||
|
@ -286,11 +288,13 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
asset: asset(),
|
asset: asset(),
|
||||||
isFavorite: asset().isFavorite,
|
isFavorite: asset().isFavorite,
|
||||||
onMoreInfoPressed: showInfo,
|
onMoreInfoPressed: showInfo,
|
||||||
onFavorite: asset().isRemote ? () => toggleFavorite(asset()) : null,
|
onFavorite:
|
||||||
|
asset().isRemote ? () => toggleFavorite(asset()) : null,
|
||||||
onDownloadPressed: asset().isLocal
|
onDownloadPressed: asset().isLocal
|
||||||
? null
|
? null
|
||||||
: () =>
|
: () => ref
|
||||||
ref.watch(imageViewerStateProvider.notifier).downloadAsset(
|
.watch(imageViewerStateProvider.notifier)
|
||||||
|
.downloadAsset(
|
||||||
asset(),
|
asset(),
|
||||||
context,
|
context,
|
||||||
),
|
),
|
||||||
|
@ -300,6 +304,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
onAddToAlbumPressed: () => addToAlbum(asset()),
|
onAddToAlbumPressed: () => addToAlbum(asset()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +312,10 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
final show = (showAppBar.value || // onTap has the final say
|
final show = (showAppBar.value || // onTap has the final say
|
||||||
(showAppBar.value && !isZoomed.value)) &&
|
(showAppBar.value && !isZoomed.value)) &&
|
||||||
!isPlayingVideo.value;
|
!isPlayingVideo.value;
|
||||||
return AnimatedOpacity(
|
|
||||||
|
return IgnorePointer(
|
||||||
|
ignoring: !show,
|
||||||
|
child: AnimatedOpacity(
|
||||||
duration: const Duration(milliseconds: 100),
|
duration: const Duration(milliseconds: 100),
|
||||||
opacity: show ? 1.0 : 0.0,
|
opacity: show ? 1.0 : 0.0,
|
||||||
child: BottomNavigationBar(
|
child: BottomNavigationBar(
|
||||||
|
@ -355,6 +363,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue