Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add support for disableScroll in galler

ashilknf232fc401d82
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index 479d77b930..0f262fe49c 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -508,7 +508,9 @@ class GalleryState extends State<Gallery> {
clipBehavior: Clip.none,
children: [
CustomScrollView(
- physics: const ExponentialBouncingScrollPhysics(),
+ physics: widget.disableScroll
+ ? const NeverScrollableScrollPhysics()
+ : const ExponentialBouncingScrollPhysics(),
controller: _scrollController,
slivers: [
SliverToBoxAdapter(