Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prevent skipping locations in trip layout mobile scroll

Anand Baburajanc343e69444d6
diff --git a/web/apps/photos/src/components/TripLayout/MobileTimelineLocation.tsx b/web/apps/photos/src/components/TripLayout/MobileTimelineLocation.tsx
index 27fad9f251..32e32cab91 100644
--- a/web/apps/photos/src/components/TripLayout/MobileTimelineLocation.tsx
+++ b/web/apps/photos/src/components/TripLayout/MobileTimelineLocation.tsx
@@ -90,6 +90,7 @@ const MobileLocationContainer = styled(Box)({
width: "100%",
height: "40svh",
scrollSnapAlign: "start",
+ scrollSnapStop: "always",
padding: "0",
});
diff --git a/web/apps/photos/src/components/TripLayout/MobileTripStarted.tsx b/web/apps/photos/src/components/TripLayout/MobileTripStarted.tsx
index 73c4707a9a..9273bb29fb 100644
--- a/web/apps/photos/src/components/TripLayout/MobileTripStarted.tsx
+++ b/web/apps/photos/src/components/TripLayout/MobileTripStarted.tsx
@@ -54,6 +54,7 @@ const MobileTripStartedContainer = styled(Box)({
justifyContent: "center",
height: "40svh",
scrollSnapAlign: "start",
+ scrollSnapStop: "always",
padding: "0",
overflow: "visible",
});