mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Fixes hide controls when zoomed and shows them when not zoomed (#3366)
This commit is contained in:
parent
7f35583c2c
commit
1e8fc7266c
1 changed files with 1 additions and 0 deletions
|
|
@ -499,6 +499,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
PhotoViewGallery.builder(
|
PhotoViewGallery.builder(
|
||||||
scaleStateChangedCallback: (state) {
|
scaleStateChangedCallback: (state) {
|
||||||
isZoomed.value = state != PhotoViewScaleState.initial;
|
isZoomed.value = state != PhotoViewScaleState.initial;
|
||||||
|
ref.read(showControlsProvider.notifier).show = !isZoomed.value;
|
||||||
},
|
},
|
||||||
pageController: controller,
|
pageController: controller,
|
||||||
scrollPhysics: isZoomed.value
|
scrollPhysics: isZoomed.value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue