Skip to content

armgit / ente

Public Imported from GitHub
0

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

Simplfied: Vertical drag function

Muhammed Ayimena70a5f95da7b
diff --git a/lib/ui/viewer/file/zoomable_image.dart b/lib/ui/viewer/file/zoomable_image.dart
index c3f7aef30f..51597e90e2 100644
--- a/lib/ui/viewer/file/zoomable_image.dart
+++ b/lib/ui/viewer/file/zoomable_image.dart
@@ -112,11 +112,9 @@ class _ZoomableImageState extends State<ZoomableImage>
};
verticalDragCallback(d) {
- if (_initialScale != null &&
+ if (_initialScale == null ||
_photoViewController.scale! <= _initialScale!) {
dragFunction(d);
- } else if (_initialScale == null) {
- dragFunction(d);
}
}