Skip to content

armgit / ente

Public Imported from GitHub
0

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

Revert "Fix the pull down interaction within Image view (#1563)"

ashilkn28d0e5fee717
diff --git a/lib/ui/viewer/file/zoomable_image.dart b/lib/ui/viewer/file/zoomable_image.dart
index 5a1d47b291..65a0280843 100644
--- a/lib/ui/viewer/file/zoomable_image.dart
+++ b/lib/ui/viewer/file/zoomable_image.dart
@@ -104,19 +104,21 @@ class _ZoomableImageState extends State<ZoomableImage>
} else {
content = const EnteLoadingWidget();
}
- verticalDragCallback(d) => {
- if (!_isZooming)
- {
- if (d.delta.dy > dragSensitivity)
+ final GestureDragUpdateCallback? verticalDragCallback = _isZooming
+ ? null
+ : (d) => {
+ if (!_isZooming)
{
- {Navigator.of(context).pop()},
- }
- else if (d.delta.dy < (dragSensitivity * -1))
- {
- showDetailsSheet(context, widget.photo),
+ if (d.delta.dy > dragSensitivity)
+ {
+ {Navigator.of(context).pop()},
+ }
+ else if (d.delta.dy < (dragSensitivity * -1))
+ {
+ showDetailsSheet(context, widget.photo),
+ },
},
- },
- };
+ };
return GestureDetector(
onVerticalDragUpdate: verticalDragCallback,
diff --git a/pubspec.yaml b/pubspec.yaml
index 4a2767e4e2..2a361a29cd 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -13,7 +13,6 @@ description: ente photos application
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.8.59+579
-
environment:
sdk: ">=3.0.0 <4.0.0"