Skip to content

armgit / ente

Public Imported from GitHub
0

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

Adjust wrapped pause tap hit area

laurensprieme7195be9b914
diff --git a/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart b/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart
index 709baa9652..357cb90816 100644
--- a/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart
+++ b/mobile/apps/photos/lib/ui/wrapped/wrapped_viewer_page.dart
@@ -274,15 +274,15 @@ class _WrappedViewerPageState extends State<WrappedViewerPage>
void _handleTapDown(TapDownDetails details, BoxConstraints constraints) {
final double dx = details.localPosition.dx;
final double width = constraints.maxWidth;
- final double leftZone = width / 3;
- final double rightZone = width * 2 / 3;
- if (dx < leftZone) {
+ final double leftZoneBoundary = width * 0.25;
+ final double rightZoneBoundary = width * 0.75;
+ if (dx < leftZoneBoundary) {
if (_progressController.value > 0.1) {
_configureForCurrentCard(restartProgress: true);
} else {
unawaited(_goToIndex(_currentIndex - 1));
}
- } else if (dx > rightZone) {
+ } else if (dx > rightZoneBoundary) {
unawaited(_goToIndex(_currentIndex + 1));
} else {
_togglePause();