Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: smoother transition for far locations

anandbaburajan08e9b01beb2e
diff --git a/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts b/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts
index 1cab564798..a7d5c691e4 100644
--- a/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts
+++ b/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts
@@ -131,17 +131,17 @@ export const handleTimelineScroll = ({
// For distant locations: zoom out β†’ pan β†’ zoom in
mapRef.flyTo([positionedLat, positionedLng], 4, {
animate: true,
- duration: 0.8,
- easeLinearity: 0.3,
+ duration: 1.5,
+ easeLinearity: 0.25,
});
setTimeout(() => {
mapRef.flyTo([positionedLat, positionedLng], targetZoom, {
animate: true,
- duration: 0.6,
- easeLinearity: 0.3,
+ duration: 1.2,
+ easeLinearity: 0.25,
});
- }, 900);
+ }, 1600);
} else {
// For nearby locations: simple pan to target location
const currentMapZoom = mapRef.getZoom();