Skip to content

armgit / ente

Public Imported from GitHub
0

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

Round max scroll speed constant to 12

ashilkn8ac06f342bdf
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/swipe_selection_wrapper.dart b/mobile/apps/photos/lib/ui/viewer/gallery/swipe_selection_wrapper.dart
index 80b96a2fec..89899df998 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/swipe_selection_wrapper.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/swipe_selection_wrapper.dart
@@ -62,8 +62,7 @@ class _SwipeSelectionWrapperState extends State<SwipeSelectionWrapper>
static const double _minAvailableSpace =
30.0; // Minimum widget height for safety
static const double _baselineRefreshRate = 120.0;
- static const double _baselineMaxScrollSpeed =
- 11.6667; // ~1400 px/s (11.6667 * 120fps)
+ static const double _baselineMaxScrollSpeed = 12.0; // 1440 px/s (12 * 120fps)
static const double _speedExponent = 1.20; // Power curve exponent
@override